【发布时间】:2019-04-29 16:34:27
【问题描述】:
我正在尝试以下方法:
psAddPK = conn.prepareStatement("ALTER TABLE users ALTER usr
GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1)");
psAddPK.execute();
但是得到
java.sql.SQLSyntaxErrorException:语法错误:遇到“GENERATED”
在创建 usr 时定义为 NOT NULL
【问题讨论】:
标签: java derby auto-increment identity