日期:2014-05-18  浏览次数:20463 次

一个大问题
现有两个表,表A有五条数据,表B有与之相同的两条数据
查出不相同的那三条数据.该怎么写?关联ID为AID和BID
这句是我想的可是不对。。。
Select   *   from   A   left   join   B   on   AID!=BID   where   BID=???????



------解决方案--------------------
select * from A where id not in (select id from B)
------解决方案--------------------
高手啊!not in!