add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
999 rows affected
1 rows affected
ID VAL Q STATUS
20 8XS78B92M2 1263442844 O
40 XLLUN9DLV4 -435709224 O
60 2DZ4EUH11J -1328077826 O
80 PJKQMOBISR -644473876 O
PLAN_TABLE_OUTPUT
EXPLAINED SQL STATEMENT:
------------------------
select /*+gather_plan_statistics*/ * from t where decode(status, 'O',
id) is not null and rownum < 5 order by decode(status, 'O', id) asc
for update skip locked
Plan hash value: 2984481354
----------------------------------------------------------------------------------------------------
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
----------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | | 4 |00:00:00.01 | 8 |
| 1 | FOR UPDATE | | 1 | | 4 |00:00:00.01 | 8 |
|* 2 | COUNT STOPKEY | | 1 | | 4 |00:00:00.01 | 2 |
| 3 | TABLE ACCESS BY INDEX ROWID| T | 1 | 4 | 4 |00:00:00.01 | 2 |
|* 4 | INDEX FULL SCAN | IX_SFU_T | 1 | | 4 |00:00:00.01 | 1 |
----------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
   2 - filter(ROWNUM<5)
   4 - filter("T"."SYS_NC00005$" IS NOT NULL)
1 rows affected
S_ID ID
0 320
0 340
0 360
0 380
0 400
1 220
1 240
1 260
1 280
1 300
2 120
2 140
2 160
2 180
2 200
3 20
3 40
3 60
3 80
3 100