select count(*) from common_member a ,uchome_member b where a.uid!=b.uid and a.username!=b.usernamea,b2个表,分别有200万的数据。现在要查询出a,b2个表中。a.uid!=b.uid and a.username!=b.username就是查询A,B2个表中。既不同uid也不同username的记录条数。请问有没高效的写法。
解决方案 »
- 急!!!!mysql里面还原语句
- 产品复合分类数据表设计。
- 远程数据库!
- 数据库中记录国家省份城市信息,应该使用哪种表的设计方式。
- 启动mysql时启动不了,出现ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
- 谁帮我看下这个SQL错在哪里啊?
- 存储过程中的临时表问题
- myodbc3.5支持mysql5.0.24a最新版本么?
- 请教各位大侠一个有点难度的截取出字段中指定的字符串的问题.
- 高手看过来!!!! 高分求查询语句!!!!! 分不够可再加!!! 走过路过不要错过!!!!
- mysql 百万级联表查询的优化
- 如何使用phpmyadmin导入一个.sql文件中的一个数据表
select count(*) from common_member a left join uchome_member b where a.uid=b.uid and a.username=b.username where b.uid is null
贴出执行计划。