select * from A where rownum < 5 order by A.c
随便取了4条排序,rownum 打乱了 order by除了 select * from (select * from A order by A.c )where rownum < 5 ;还有别的方法吗?效率第一;
随便取了4条排序,rownum 打乱了 order by除了 select * from (select * from A order by A.c )where rownum < 5 ;还有别的方法吗?效率第一;
解决方案 »
- 关于数据库字段类型的一个转化问题!请你来帮忙看看!谢谢!
- oracle存储过程问题
- oracle WIN7旗舰版64位 怎么安装
- 异常oracle.jdbc.driver.ScrollableResultSet.getCachedDatumValueAt
- DX请帮忙,由于买书不便,谁有“<<Oracle 9i 中文版数据库系统管理>>赵松涛著 人民邮电出版社” 电子版或网址
- [求助]请教大家一个SQL多条件查询的问题
- table 和 Nested Table到底有什么区别?
- 开贴讨论一个Fetch .. into 问题!!!
- 序列的问题?新手求教
- 一波还未平息,一波又来浸袭(ORA-121154:TNS:无法处理服务名)???Help me
- 求救:C++ builder20007编译OTL报错
- 存储过程无效【急】
(select *,rownum mm from A order by A.c )
where mm < 5;
select * from A where rownum < 5 order by A.c
建索引