Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 pgadmin3 在 PostgreSQL 的一个查询语句中添加多个列?
试试这个 :
ALTER TABLE table ADD COLUMN col1 int, ADD COLUMN col2 int;
ALTER TABLE IF EXISTS TABLEname add ADD COLUMN IF NOT EXISTS column_name data_type [column_constraint];
column_constraints 是可选的详细查询