📜  postgres 更改表添加主键 - SQL 代码示例

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

代码示例1
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);