select rownum-1 id from all_source where rownum<=501
minus
select colname from a;//colname为那个number字段
解决方案 »
- 测试一下你的sql功底,高手请进...
- 大师们帮忙出谋画测, 4G的内存, 3.2G的双志强CPU, 机器上如何配置oralce9i , 性能会最好,速度会最快?
- 日期型变量的运算
- oracle数据库归档机制方面的问题
- 怎样给一个用户具有在存储工程中EXECUTE动态建表的权限?
- Enterprise Management只能默认第一个数据库问题!!!
- 大家看看这段触发器有甚莫问题!!!
- 请问, Oracle 有没有图形界面,可以在里面进行对数据库的管理,如删除,建立表等。
- oracle regexp_replace 字符串值替换问题???
- 求rman 定时备份脚本
- 关于存储过程的问题
- 再来问一个常识性的问题,请进
---------
5
1
3
5
6
4已选择6行。实际:130
10:02:50 SQL> select rownum-1 id from all_source where rownum<=11
10:03:08 2 minus
10:03:10 3 select bbb from tcn; ID
---------
0
2
7
8
9
10已选择6行。实际:3135
10:03:14 SQL>
(select rownum from b where rownum<501) minus (select distinct id from a);