您確定columnRandom是數字(38,0)?在oracle中NUMBER!= NUMBER(38,0)
讓我們創建兩個表。
create table src_table (a number);
create table src_table2(a number(38,0));
select column_name,data_precision,Data_scale from user_tab_cols where table_name like 'SRC_TABLE%';
查詢結果是。列的定義是不同的。
+-------------+----------------+------------+
| Column_name | Data_Precision | Data_scale |
+-------------+----------------+------------+
| A | | |
| A | 38 | 0 |
+-------------+----------------+------------+
如果我嘗試創建第一個表的集羣。
CREATE TABLE Table_cluster
CLUSTER myLovelyCluster (a)
AS SELECT * FROM src_table ;
ORA-01753: column definition incompatible with clustered column definition
2擋每一件事情是確定的。
CREATE TABLE Table_cluster
CLUSTER myLovelyCluster (a)
AS SELECT * FROM src_table2 ;
如果你添加到選擇。執行也是正確的。
CREATE TABLE Table_cluster CLUSTER myLovelyCluster (a)
AS SELECT cast(a as number(38,0)) FROM src_table;
myLovelyCluster!= myCluster3。 –
opps!對不起,我修復了這個問題,但問題仍然存在 – napi15
當您CREATE TABLE my_table AS SELECT * FROM myTable時,聚類列的結果日期類型是什麼。 –