不包含给定数据问题 表中的AA列: 03 05 06 07 08 09给定一批已定的数据:(01,02,03,04,05) , 怎么得到不在表中AA列的那些数据,(即01,02,04)? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 (01,02,03,04,05) 你这个数据是从表中查询出来的?select aa from tablename1 where aa not in(select aa from tablename2) SELECT aa from t where aa not in ('01','02','03','04','05');-- 不明白楼主的意思,你表中没有'01','02',04',怎么得到呢? -- 这样的话,用connect by 嘛... -- 请参考:http://hi.baidu.com/edeed/blog/item/18cf87d6ed9f032706088b4a.html A用户创建了个type,怎样授权B用户调用? 查询语句求优化方案 关于使用PRO*C编程的一些简单说明和例子(共同学习) 1=1在数据库中是什么意识,(我是我小气给0分,而是我没有分了,各位英雄,帮个忙) sql server 和 oracle 是大多公司都在用的两种数据库么? Oracle导出问题... ORACLE中的时间问题 在SQL2000 中的这个存储过程在Oracle9i如何写??????????在线等待!!!!!!!!!!!!!!!!!!!!! 请问如何在decode里判断非空 请问哪里有oracle所有存储过程的介绍? oracle存储过程语法问题 关于单行子查询返回多行问题
select aa from tablename1 where aa not in(select aa from tablename2)
-- 这样的话,用connect by 嘛...