pgsql “xxx_id_seq” does not exist等类似错误

adminpgsql “xxx_id_seq” does not exist等类似错误已关闭评论条评论 2,237 次浏览

插入pg数据库时候
“id” int4 NOT NULL DEFAULT nextval(‘xxx_id_seq’::regclass)
报错:ERROR: relation “xxx_id_seq” does not exist
解决:
改为:“id” serial NOT NULL


分类目录