Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
In informix, while doing date manipulation, you sometimes have to use
'Unit' keyword to identify the type of manipulation.
I forgot the exact syntax but it can be :
select * from table
where table.datecolumn=today-15 unit day (to subtract 15 number
of days)select * from table
where table.datecolumn=today-3 unit month (to subract 3 months)select * from table
where table.datecolumn=today-1 unit year ( to subract 1 year)
Please recheck with Informix manual to recheck this or to get exact
syntax.
Regards
Fateh
fateh.ahmad@cressoft.com.pk
>
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.