in reply to Re: Question about perl & oracle & and a SQL query
in thread Question about perl & oracle & and a SQL query
You can do date arithmetic directly in Oracle, using days and fractional days. I don't deal with Oracle servers anymore, so this isn't tested, but the syntax should be:
select contador, cod_entidad_oim, cod_agr, cod_operacion from mapcom_portext.TR0685002 where fch_hor_operacion between sysdate() and (sysdate()-(1/24))
You can also use the 'interval' syntax:
... between sysdate() and ( sysdate() - interval '1' hour )
|
|---|