表格消息的结构-
id - Integer - NotNull - Primary Key
message - text - NotNull
当我尝试使用插入时
INSERT INTO messages(message) VALUES ('abc');
它给出了以下错误-
ERROR: null value in column "id" of relation "messages" violates not-null constraint
DETAIL: Failing row contains (null, abc).
SQL state: 23502
提前致谢 !