所以我試圖將我的一個表的副本創建到索引組織的表中,但是我收到一個錯誤,這是代碼。
create table clients2 as
select *
from clients
organization index;
ORA-00933:"SQL 命令未正確結束"
uj5u.com熱心網友回復:
你的命令是錯誤的。
SQL> create table testiot ( object_id primary key,object_name )
organization index
as select object_id,object_name from dba_objects
where object_id is not null ;
Table created.
SQL> select count(*) from testiot ;
COUNT(*)
----------
208730
Organization index必須在定義表之前as select。另一方面,您需要定義表中的列以及哪些是 IOT 的主鍵。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/356369.html
