Reputation: 97
PostgreSQL - Deleting data that are older than 3 Months command
Please help me guys with this i cant find the command.
Upvotes: 0
Views: 712
Reputation: 132
Try this command:
DELETE from table WHERE to_timestamp(last_login) < NOW() - INTERVAL '3 months'
Upvotes: 1