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 Fabozzi — — source: Informix-list mailing list archive (1991-1998)
I would like to do a select on a date field which will include all
records for a certain month. So I define a DATETIME YEAR TO MONTH
Variable, and I want to compare this to a date field in my table.
I cant figure the syntax, I tried
SELECT * FROM invc_header WHERE (DATETIME (invoice_date) YEAR TO MONTH) ="1994-11"
The "1994-11" should be able to be a variable (DATETIME YEAR TO MONTH)
But it gives me syntax errors.
Has anybody had any success with this type of select.
Paul Fabozzi
----------------------------------
Staten Island MicroAge
----------------------------------
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.