Hi, Everybody!
I make query for the deleting data with expired date on my database when the user call web application,
DELETE
FROM Table
WHERE CLDate < date();
It is working fine, when delete date that are "<" then today date, but not !!! matter what is the year!!
For Example:
if exp.day 12/01/2006 and 12/01/2007 it delete the both, but shouldnt delete the 12/01/2007!!
What is the problem??
I make query for the deleting data with expired date on my database when the user call web application,
DELETE
FROM Table
WHERE CLDate < date();
It is working fine, when delete date that are "<" then today date, but not !!! matter what is the year!!
For Example:
if exp.day 12/01/2006 and 12/01/2007 it delete the both, but shouldnt delete the 12/01/2007!!
What is the problem??