- Notifications
You must be signed in to change notification settings - Fork 849
/
Copy pathbefore.sql
42 lines (33 loc) · 624 Bytes
/
before.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
set pagesize 1000 linesize 350 trims on
column owner format a10
column edition_name format a10
column object_name format a20
column subobject_name format a20
set timing on
select*from
( select*
from t
order by object_id desc )
where rownum <=10;
@plan
select*from
( select*
from t
order by object_id desc )
where rownum <=10;
@plan
select*
from t
order by object_id asc
fetch first 10 rows only;
@plan
select*
from t
order by object_id asc
fetch first 10 rows only;
@plan
select*
from t
order by object_id asc
offset 10 rows fetch first 10 rows only;
@plan