I want to delete all records into Postgress table and leave only records which were created last 1 hour. I tried this:
DELETE FROM common.orders WHERE created_at < (NOW(), INTERVAL -1 HOUR);
But I get error:
[42601] ERROR: syntax error at or near "HOUR"
Do you know how I can fix this issue?