Ken.Chou
(Ken.Chou)
金牌会员
 
资深会员
UID 17290
精华
1
积分 1048
帖子 1027
金钱 1038 喜悦币
威望 10
人脉 0
阅读权限 70
注册 2002-10-26 来自 中国
状态 离线
|
[广告]: q
m
两表连接,想找出不同的记录,可是
MySQL想找出表1中有表2中没有的记录,这样居然不行 !! 
select c.* from table1 c, table z where z.username <> c.username
而这样可以找出两表都有的记录:
select c.* from table1 c, table z where z.username = c.username
是我的逻辑有问题?
|
|