I have been tasked with converting some scripts referencing an Informix database to be compatible with a new Oracle database.
I thought I would start out by going through the individual scripts and looking for function calls that may vary syntactically between Informix and Oracle. I had been able to find the Oracle equivalent for most of the function calls I came across, however this one has me a little stumped:
where f.writetime > current - interval(xxx) day to day
What exactly does that function mean, particularly the (xxx) part and what is the Oracle equivalent?
It’s not a function call – it’s Informix SQL’s
INTERVALdata type literal syntax.Oracle SQL supports the interval data type as well.
I would expect that oracle would give a similar result with
Essentially, when the writetime is greater than the current time minus xxx days.