无效的 ALTER TABLE 选项 ORA-01735

时间:2021-05-10 11:11:27

标签: oracle oracle-apex

我想在 oracle apex 中的现有表中添加一个标识列,但我收到了无效的 ALTER TABLE 选项错误。我一直在搜索有关此错误的许多主题,但似乎找不到对这个特定问题有帮助的任何内容。

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

如果有任何有用的帖子的链接,我将不胜感激,感谢您的浏览。

1 个答案:

答案 0 :(得分:1)

语法错误。应该

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

相关问题