The main difference with mySQL is that quotes and double quotes have different meaning. It is very important to put timestamp variable into single quotes. As well as all variables.
This won't work:
SELECT * FROM test WHERE timestamp < "2012-02-28 10:39:07";
This will do:
SELECT * FROM test WHERE timestamp < '2012-02-28 10:39:07';
The rest of comparison syntax is the same as is in mysql.
This won't work:
This will do:
SELECT * FROM test WHERE timestamp < '2012-02-28 10:39:07';
The rest of comparison syntax is the same as is in mysql.