oralearner
Programmer
Oracle 8i complete reference says
"rows of the index organized tables do not have rowIDs. So, it is not possible to select rowid pseudo column from an IOT."
Here is what i tried..
create table test(c1 number primary key, c2 number) organization index;
Table created.
insert into test select rownum, rownum+rownum from tab;
82 rows created.
commit;
Commit complete.
select rowid from test;
ROWID
-----------------------------------------
*BADAI7MCwQL+
*BADAI7MCwQP+
*BADAI7MCwQT+
*BADAI7MCwQX+
*BADAI7MCwQb+
*BADAI7MCwQf+
*BADAI7MCwQj+
*BADAI7MCwQn+
*BADAI7MCwQr+
*BADAI7MCwQv+
create table test2 as select * from test;
Table created.
select rowid from test2;
ROWID
------------------
AAAHvfAADAAACgjAAA
AAAHvfAADAAACgjAAB
AAAHvfAADAAACgjAAC
AAAHvfAADAAACgjAAD
AAAHvfAADAAACgjAAE
AAAHvfAADAAACgjAAF
AAAHvfAADAAACgjAAG
AAAHvfAADAAACgjAAH
AAAHvfAADAAACgjAAI
select * from test where rowid in(select rowid from test);
C1 C2
---------- ----------
1 2
2 4
3 6
4 8
5 10
6 12
Can anyone explain what is *BADAI7MCwQv+ if it is nota RowId.
"rows of the index organized tables do not have rowIDs. So, it is not possible to select rowid pseudo column from an IOT."
Here is what i tried..
create table test(c1 number primary key, c2 number) organization index;
Table created.
insert into test select rownum, rownum+rownum from tab;
82 rows created.
commit;
Commit complete.
select rowid from test;
ROWID
-----------------------------------------
*BADAI7MCwQL+
*BADAI7MCwQP+
*BADAI7MCwQT+
*BADAI7MCwQX+
*BADAI7MCwQb+
*BADAI7MCwQf+
*BADAI7MCwQj+
*BADAI7MCwQn+
*BADAI7MCwQr+
*BADAI7MCwQv+
create table test2 as select * from test;
Table created.
select rowid from test2;
ROWID
------------------
AAAHvfAADAAACgjAAA
AAAHvfAADAAACgjAAB
AAAHvfAADAAACgjAAC
AAAHvfAADAAACgjAAD
AAAHvfAADAAACgjAAE
AAAHvfAADAAACgjAAF
AAAHvfAADAAACgjAAG
AAAHvfAADAAACgjAAH
AAAHvfAADAAACgjAAI
select * from test where rowid in(select rowid from test);
C1 C2
---------- ----------
1 2
2 4
3 6
4 8
5 10
6 12
Can anyone explain what is *BADAI7MCwQv+ if it is nota RowId.