【发布时间】:2021-05-10 19:16:29
【问题描述】:
我希望在 oracle apex 中向我现有的表中添加一个标识列,但我收到了无效的 ALTER TABLE 选项错误。我一直在搜索很多关于这个错误的线程,但我似乎找不到任何对这个特定问题有帮助的东西。
ALTER TABLE tbl_Customer
ADD Customer_ID int Identity(1,1);
感谢您查看任何可能有用的帖子的链接。
【问题讨论】:
标签: oracle oracle-apex
我希望在 oracle apex 中向我现有的表中添加一个标识列,但我收到了无效的 ALTER TABLE 选项错误。我一直在搜索很多关于这个错误的线程,但我似乎找不到任何对这个特定问题有帮助的东西。
ALTER TABLE tbl_Customer
ADD Customer_ID int Identity(1,1);
感谢您查看任何可能有用的帖子的链接。
【问题讨论】:
标签: oracle oracle-apex
语法错误。应该是
SQL> create table tbl_customer (name varchar2(20));
Table created.
SQL> alter table tbl_customer add customer_id int generated always as identity;
Table altered.
SQL>
此外,您没有使用 MySQL,因为您遇到 ORA-01735 错误(与 Oracle 有关)。
【讨论】: