我希望将一个identity列添加到我的oracle apex中的现有表中,但是我得到了invalid ALTER table option error。我已经搜索了很多关于这个错误的帖子,但我似乎找不到任何对这个特定问题有帮助的东西。
ALTER TABLE tbl_Customer
ADD Customer_ID int Identity(1,1);
如果有任何可能有用的帖子的链接,我将不胜感激,感谢您的关注。
发布于 2021-05-10 19:16:17
语法错误。应该是
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相关)。
https://stackoverflow.com/questions/67469399
复制相似问题