postgres的ALTER TABLE只支持1、添加列。2、列改名。3、表改名。
不支持删除列和修改列属性。
alter table1 to table2;
create table table1(column1 new type,[...]);
select * into table1 from table2;
drop table table2;
我一般都是这么做的。
不支持删除列和修改列属性。
alter table1 to table2;
create table table1(column1 new type,[...]);
select * into table1 from table2;
drop table table2;
我一般都是这么做的。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货