J'ai besoin d'un script shell UNIX pour convertir mes requêtes de Java au format compatible Oracle. c'est à dire.Script UNIX pour convertir des requêtes
I disposent de toutes les requêtes compatibles 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" + "'"
Oracle
SELECT a, b, c, d, e, f, g de test où année (horodatage) = année (aujourd'hui) et mois (horodatage) = mois (aujourd'hui) et jour (horodatage) = 2 et h = 'W'
Est-il possible d'utiliser sed ou awk?