有一sql语句写不来?大家帮帮忙 select name from table1 where name not exist in (select name from table2) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table1 where name not in(slect name form table2) 感觉是第二句。但是第二句有点小问题,要改一下。select * from table1 where name not in (select Distinct name from table2) select * from table1 awhere not exists (select * from table2 where 姓名=a.姓名)或者select * from table1 where 姓名 not in(slect 姓名 form table2) select * from table1 where name not in(slect name form table2) 楼主阿,小心上面的回复阿.他们有好多都将from写成form了,这样会出错的这句才对的:select name from table1 where name not in (select name from table2) 求写两个超级简单的触发器,万谢 如何判断SQLSERVER存储过程是否正在执行 sql分组查询数据 join 让我抓狂哦? 怎么因事哦? 关于设置财务类型软件数据类型的问题 数据库恢复的问题。请您帮助,谢谢。 将这个算法编成存储过程 安装sql sp4补丁时出问题了 VFP问题? SQL大追踪! 在win2003上安装了SQL Server2000,为什么在其他机器上的SQL Server2000无法连接到2003上的SQL Server2000呢?提示服务器不存在或者连接超 T-SQL触发器的一些问题
where not exists (select * from table2 where 姓名=a.姓名)
或者
select * from table1
where 姓名 not in(slect 姓名 form table2)
where name not in(slect name form table2)
select name from table1 where name not in (select name from table2)