in reply to Question about perl & oracle & and a SQL query
I'd imagine that oracle has the getdate() function, as well as dateadd(), so you might just remove perl from the equation and use something like (untested):
...roboticusmy $sql1_datos = qq( select contador, cod_entidad_oim, cod_agr, cod_operacion from mapcom_portext.TR0685002 where fch_hor_operacion between getdate() and dateadd(h,-1,getdate) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question about perl & oracle & and a SQL query
by jhourcle (Prior) on Feb 09, 2009 at 18:18 UTC | |
|
Re^2: Question about perl & oracle & and a SQL query
by Sombrerero_loco (Beadle) on Feb 09, 2009 at 14:25 UTC | |
by massa (Hermit) on Feb 09, 2009 at 15:35 UTC | |
by Sombrerero_loco (Beadle) on Feb 10, 2009 at 14:57 UTC | |
by maxodyne (Initiate) on Mar 03, 2011 at 16:35 UTC |