Prathamesh Kurade
Prathamesh Kurade

Reputation: 97

PostgreSQL - Deleting data that are older than 3 Months command

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

Answers (1)

K.D
K.D

Reputation: 132

Try this command:

DELETE from table WHERE to_timestamp(last_login) < NOW() - INTERVAL '3 months' 

Upvotes: 1

Related Questions