您确定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时,聚类列的结果日期类型是什么。 –