Basic ROWID
SELECT rowid, d.* FROM DUAL d
ROWID | DUMMY | AAAACPAABAAAAShAAA | X |
---|
ROWID in Subselect
SELECT * FROM(SELECT rowid, d.* FROM DUAL d)
ROWID | DUMMY | AAAACPAABAAAAShAAA | X |
---|
ROWID with CONNECT BY LEVEL
SELECT rowid, LEVEL FROM DUAL CONNECT BY LEVEL < 2
ROWID | LEVEL | AAAACPAABAAAAShAAA | 1 |
---|
ROWID + CONNECT BY + Subquery
SELECT * FROM(
SELECT rowid, LEVEL FROM DUAL CONNECT BY LEVEL < 2)
ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc.More Details: https://docs.oracle.com/error-help/db/ora-01446