我想转换以下
SELECT * `members` m
WHERE NOT EXISTS
(SELECT s.mid
FROM memberships s
WHERE s.mid = m.id);
到等效的删除语句。但是,下面的代码不起作用:
DELETE FROM `members` m
WHERE NOT EXISTS
(SELECT s.mid
FROM memberships s
WHERE s.mid = m.id);
我想转换以下
SELECT * `members` m
WHERE NOT EXISTS
(SELECT s.mid
FROM memberships s
WHERE s.mid = m.id);
到等效的删除语句。但是,下面的代码不起作用:
DELETE FROM `members` m
WHERE NOT EXISTS
(SELECT s.mid
FROM memberships s
WHERE s.mid = m.id);