Question : Small modification query

Hi Expert,

In an earlier post I've asked a question about a query. This is the post:

http://www.experts-exchange.com/Database/MySQL/Q_24374389.html

Now I've changed the db propety of field THT to date (format yyyy-mm-dd or 2009-05-21) and before it was varchar. But now the query needs to be changed.

Thanks,


Answer : Small modification query

Not sure if you've allowed THT to be null, so I've allowed for it being null or the default empty date value
1:
2:
3:
4:
5:
6:
SELECT plaatsingsdatum, titel, bericht, afbeelding, THT
FROM nieuws
WHERE 
  THT IS NULL
  OR THT = '0000-00-00'
  OR THT > NOW()
Open in New Window Select All
Random Solutions  
 
programming4us programming4us