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.
Paul Roberts — — source: Informix-list mailing list archive (1991-1998)
In article <matuscak-020594165521@zaphod.rohrer.com> matuscak@rohrer.com (Joe Matuscak) writes:
>Hi. Ive got a table that is used for logging information about when a
>program is run. Among other things, its got a date field in it. Id like to
>have my nightly cron job run some SQL that basically says "delete from
>userlog where timestamp is older than 6 months". Can someone shed some
>light on how to do that?
How about:
delete from userlog where timestamp < today - 182 ?
Paul
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.