|
- create table t071fi03_with_ties ( a number , b varchar2(20));
- insert into t071fi03_with_ties values (1,'B');
- insert into t071fi03_with_ties values (1,'B');
- insert into t071fi03_with_ties values (1,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- insert into t071fi03_with_ties values (2,'B');
- commit;
- select * from t071fi03_with_ties;
- begin
- for i in 3..100
- loop
- insert into t071fi03_with_ties values (i, 'X');
- end loop;
- commit;
- end;
- /
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 5 rows with ties;
-
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 5 rows only;
-
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 5 percent rows with ties;
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 5 percent rows only;
-
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 10 percent rows with ties;
- select * from t071fi03_with_ties
- order by a
- offset 2 rows
- fetch next 10 percent rows only;
-
复制代码
|
|