Advertisement
Guest User

Untitled

a guest
May 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. delete cat.* from categories cat where id in (select from (select c.id from apks a right join categories c on a.category_id = c.id where category_id is null and parent != 0) x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement