例如,语句可表达为
delete from clients where not exists(select * from branches where branches.cid = clients.cid);但4.0.18不支持子查询
在不考虑升级数据库的情况下
请问有什么其他语句可实现同样同能?
delete from clients where not exists(select * from branches where branches.cid = clients.cid);但4.0.18不支持子查询
在不考虑升级数据库的情况下
请问有什么其他语句可实现同样同能?
delete from clients where cid not in(select cid from branches); --2.
delete clients
from clients,branches
where clients.cid<>branches.cid;
delete from clients where cid not in(select cid from branches); 这句还是用到了子查询