例如,语句可表达为
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不支持子查询
在不考虑升级数据库的情况下
请问有什么其他语句可实现同样同能?
解决方案 »
- 我有个数据库下有300多张表,其中有280张表
- 求助:mysql(系统自带数据库)中各表的意义
- sql优化语句
- 将重复了M次的记录显示N次的sql语句怎么写
- 我用ADO连接mysql 5.0,起初用ODBC3.51的驱动,连接正常,但是查询结果中文不显示;后用5.0的驱动,中文可以显示,但是连接速度极慢,请
- mysql新手,请教比较是否等于当天时间有没有函数?
- 那位有Mysql 在Liunx下安装的详细步骤,最好是mysql-4.0.15a.tar.gz的安装方法
- 请教如何将一个字段设成默认值now()
- 【50分】哪里有比较好的mysql资料、教材???
- 多表联合查询
- 为什么这2段sql查询的结果不一样,很奇怪的问题,请大家帮忙分析下
- odbc读取mysql中文字段的问题
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); 这句还是用到了子查询