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.
我想在 PostgreSQL 的表中删除 200 列。我试过:
ALTER TABLE my_table DROP COLUMN col1, col2
但我收到这样的错误:
错误:“col2”处或附近的语法错误
检查这个:
ALTER TABLE table DROP COLUMN col1, DROP COLUMN col2;
这对我有用:
alter table your_table_name drop column your_column_name;