hello;
can someone please help me with this query:

"delete from TABLE_NAME where TIMESTAMP_COLUMN(date, interval 3 day) < now()"

what i'm tryng to do is to delete all records that are 3 (or more) days old
i've looked around in the manual but couldn't find a "working answer", date 
functions are only explained for select queries...


mysql version :3.23.33
server error : syntax error near'(date, interval 3 day)...

regards


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to