【发布时间】:2017-09-23 13:53:01
【问题描述】:
我想在 Oracle 的全局临时表中添加一个计算列。 对于简单表,该请求运行良好。
alter table ma_table add ma_column as (column1*column2);
但对于临时的,它拒绝使用as。
有没有办法在 Oracle 的临时表中添加一个新的计算列?
【问题讨论】:
-
错误信息非常明确。
ORA-54010: expression column is not supported for a temporary table。为什么要这样做? -
是项目约束,其实是“alter table ma_table add ma_column;”当“as”存在时,请求被拒绝时效果很好。
标签: sql oracle calculated-columns temp-tables