I have 2 tables: users & rent
How to select name from table users WHERE unixtime is before 2012-09-04
and
delete from table rent WHERE name is from previous query.
It was something like below, but I dont know how to join it with delete query:
SELECT *
FROM `pstone_cuboids`
WHERE `last_used` >= UNIX_TIMESTAMP( '2012-09-04' )
Correct me if im wrong, does the above selects all dataes before 2012-09-03 (2nd, 1st, 31th etc.)?
This should work: