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.
ccremid — — source: Informix-list mailing list archive (1991-1998)
Sukumar Konduru wrote:
>
> Hi
>
> I have a database column "date time year to second"
> [snip]
>
> I want to know in ESQLC or SQL
> 1. How to find current date and time in "year to second"?
Try:
SELECT * from YourTable
where start <= (CURRENT YEAR TO SECOND) and
start >= (CURRENT YEAR TO SECOND - 1 UNITS DAY)
> 2. How to mainpuate above to get date for exactly for 24hours back ?.
>
> Thank you
> sukumar konduru
> sukumar@gte.net
Hope This helps
Tino
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.