Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete from actor.usr_message aum
- where not exists (
- select 1
- from actor.usr_standing_penalty ausp
- where ausp.usr_message = aum.id
- ) and aum.create_date < date(now() - '3 months'::interval);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement