connectionscentres
Programmer
Hi,
I cant find the answer on the manual pages. Maybe I should look harder.
Basically I'm putting dates into a table using:
then I can select dates that have put an INVOICEDATE in by doing:
Only the reverse doesnt work, meaning I cant do a query for rows where no invoice date was entered (i.e. null)
So I need to know exactly what value the date_format function returns when it comes accross a null value. I've tried echoing the result to the screen and it returns an empty string but then doing a
doesnt work. Any suggestions?
I cant find the answer on the manual pages. Maybe I should look harder.
Basically I'm putting dates into a table using:
Code:
INSERT INTO TEMP date_format(INVOICEDATE, '%Y-%m-%d %H:%i:%s') As datei
then I can select dates that have put an INVOICEDATE in by doing:
Code:
SELECT * FROM TEMP WHERE datei>'1'
Only the reverse doesnt work, meaning I cant do a query for rows where no invoice date was entered (i.e. null)
So I need to know exactly what value the date_format function returns when it comes accross a null value. I've tried echoing the result to the screen and it returns an empty string but then doing a
Code:
SELECT * FROM TEMP WHERE datei NOT LIKE ''