梯形的周长公式怎么算:sql 语句 排除表1中在表2的数据

来源:百度文库 编辑:高校问答 时间:2024/05/06 13:07:44
例如表一中有1,2,3,4,5,6
表二中有2,3,4,5,7,8,9
怎么通过SQL语句得出结果是1,6

跪求高手解决!!

因为我是新人没有积分所以对不起了!

兄弟不胜感激,谢谢.
语句没有问题,不过不能实现我想要实现的功能!
还有没有其他的办法呢?

简单:
表一 (table1) 的 1,2,3,4,5,6 是放在字段 number 中的
表二 (table2) 的 2,3,4,5,7,8,9 也是放在字段 number 中的
Select number from table1,table2 where table1.nember <> table2.number

//假如这个字段是a
Select a from 表一 where a not in(Select a from 表二 )

select t1.column from table1 t1 where t1.column not in(select t2.column from table2 t2)

我没看明白你意思