简单sql问题 --tryselect a from 表1 Twhere not exits (select 1 from 表2 where a=T.A) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表1 where a not in(select * from 表2)应该没有什么问题吧 select 表1.* from 表1,表2 where 表1.a<>表2.a --存在写错了,这样select a from @表1 Twhere not exists (select 1 from @表2 where a=T.A) 我也觉得不会有问题,可以试试select a from 表1 where not exists (select a from 表2) 数据对不对,确实对的话,尝试zlp的方法。 select * from 表1 where a not in(select * from 表2)没问题的,你再试试,注意括号 应该是select * 而不是select a select a from table01 where a not in(select a from table02)这样写没什么问题的啊 用not in没有问题啊。搂主看看数据有问题没有吧 datediff求值问题 如何去掉重复项 如何高效的查询表A中不在表B的所有数据? CListCtrl 如何根据字体设置行的高度? 一个很简单的问题 怎样根据某列的最小值取数据? =======sql 存储过程的"递 归"==来试下吗? 关于数据更新同步的问题! 数据库服务器隔一断时间启动不了的问题,请各位高手帮忙。在线等待! SQL繁简体的问题。 我刚刚完成一个管理系统,想更深入的了解数据库,大家能推荐几本书籍给我参考参考吗? 数据库损坏如何修复???
应该没有什么问题吧
select a from @表1 T
where not exists (select 1 from @表2 where a=T.A)
可以试试select a from 表1 where not exists (select a from 表2)
尝试zlp的方法。
没问题的,你再试试,注意括号