Delete orphaned media #12

Closed
opened 2020-10-21 22:46:29 +00:00 by pendulum · 0 comments

delete from p where not exists (select from (select p_id from c1 union select p_id from c2 union ...) s where s.p_id = p.id);

`delete from p where not exists (select from (select p_id from c1 union select p_id from c2 union ...) s where s.p_id = p.id);`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DebaucheryLibrarian/traxxx#12