This was the second time I needed to look up how to create an Index Organized Table (IOT) with a Create Table As Select (CTAS).
So just a quick entry so I won’t forget…. or at least that I will know where to look.
create table [table_name]
( [col1] primary key
, [col2]
, [col3]
)
organization index
as
select [col1]
, [col2]
, [col3]
from [table_name]
/
Documentation link:
http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96521/tables.htm
Don’t forget to use google (url:technolo…) ;-))