菜鸟求助!查询表中的所有在其他表中不存在的数据 表1:uname uscore alex 100 tom 90 sam 90表2:uname uscore john 100 green 90查询表1中所有在表2中不存在的uname咋办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tb1 except select * from tb2 select * from tb1 where not exists(select * from tb2 where uname=tb1.name) select * from 表1where Uname not in (select uname from 表2) select t1.* from t1 left join t2 on t1.uname=t2.uname where t2.uname is null select * from 表1 where Uname not in (select uname from 表2) select * from tb1 where not exist(select * from tb1.uname=tb2.uname) 如何恢复追加到媒体的备份 可以这样移动数据库文件到另一个盘吗? 求教:关于insert into select ...和select into 性能比较。 sql调查问卷结果统计计算问题 询问汉字查询 求一个tsql语句,高手入 请问装 SQL Server 2K 的配置要求?? 求助﹕SELECT語句 如何把含有 '2,234' 字符轉為數字 有哪位大哥大姐能教教小弟ERwin是怎么使用的呀? 总是提醒“在将 varchar 值 '2008/10/01 ' 转换成数据类型 int 时失败。”在线等。 紧急问题,以前从来没有遇到的问题,给位大虾援助一下
except
select * from tb2
select * from 表1
where Uname not in (select uname from 表2)