tablename where ....的问题。
请问想取前10条数据怎么取。
谢了。
8 个解决方案
#1
select * from tbl where rownum < 101
#2
select * from tablename where rownum<11
#3
抽取从N行到M行的记录,如从20行到30行的记录
select * from (select rownum id,t.* from table) where id between N and M;
select * from (select rownum id,t.* from table) where id between N and M;
#4
select * from tbl where rownum < 101
#5
select * from table_name where rownum<=100
#6
select * from tablename where rownum<=10
#7
http://www.csdn.net/develop/author/netauthor/black_snail/
看来有必要把它置顶。。
看来有必要把它置顶。。
#8
select * from (selelct t.* from tableName t order by ID) where rownum<=100
#1
select * from tbl where rownum < 101
#2
select * from tablename where rownum<11
#3
抽取从N行到M行的记录,如从20行到30行的记录
select * from (select rownum id,t.* from table) where id between N and M;
select * from (select rownum id,t.* from table) where id between N and M;
#4
select * from tbl where rownum < 101
#5
select * from table_name where rownum<=100
#6
select * from tablename where rownum<=10
#7
http://www.csdn.net/develop/author/netauthor/black_snail/
看来有必要把它置顶。。
看来有必要把它置顶。。
#8
select * from (selelct t.* from tableName t order by ID) where rownum<=100