I have a table with a column called timestamp
timestamp DATE DEFAULT (datetime('now','localtime'))
which stores the entries in the table as follows:
2010-12-06 18:41:37
How to delete records of a certain date? I use:
DELETE FROM sessions WHERE timestamp = '2010-12-06';
but it does not work. Did I miss something?
thank you in advance.
source
share