我需要一個UNIX shell腳本將我的查詢從Java兼容轉換爲Oracle兼容格式。即。用於轉換查詢的UNIX腳本
我有所有的java兼容的查詢:
的java:
SELECT a, b, c, d, e, f,g "+// "from test where year(timestamp)=year(today) and month(timestamp)=month(today) "
+// "and day(timestamp)=2 and h='" + "W" + "'"
甲骨文
選擇A,B,C,d,E,F,G從測試,其中 年(時間戳)=年(今日)和 月(時間戳)=月(今天)和 日(時間戳)= 2和h ='W'
是否有可能使用sed或awk?