📜  自动递增 psql 不是主键 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:04.162000             🧑  作者: Mango

代码示例1
CREATE SEQUENCE cateogry_id_seq;
ALTER TABLE category ALTER COLUMN category_id SET DEFAULT nextval('cateogry_id_seq');