无效的 ALTER TABLE 选项 ORA-01735

Invalid ALTER TABLE option ORA-01735

我想在 oracle apex 中向我现有的 table 添加一个标识列,但我收到了无效的 ALTER TABLE 选项错误。我一直在搜索有关此错误的大量线索,但似乎找不到对解决此特定问题有帮助的任何信息。

ALTER TABLE tbl_Customer
ADD Customer_ID int Identity(1,1);

对于任何可能有用的帖子,我将不胜感激 link,感谢您的关注。

语法错误。应该是

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 相关)。