我需要一个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?