Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some rows won't be deleted when using the DATE() in TIMESTAMP column.

Status
Not open for further replies.

fletchsod

Programmer
Dec 16, 2002
181
I noticed that some rows won't be deleted if I use this SQL Query...

Code:
DELETE FROM INQUIRIES WHERE DATE(INQ_TIMESTAMP) < '2005-01-01'

THe INQ_TIMESTAMP use data-type of TIMESTAMP. So, why can't it be deleted?
 
Hi,

Do you get an erro mesage back or have you just noticed that rows are not getting deleted?

In the first instance, what is the error message?
In the secnond instance have you looked at the data to confirm it is outside of your data deleted?

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top