postgresql sql修改表,表字段

1.更改表名

alter table 表名 rename to 新表名

2.更改字段名

alter table 表名 rename 字段名 to 新字段名

3.增加列

ALTER TABLE ud_web_site_configuration ADD COLUMN price_list_id int;

4.删除列

ALTER TABLE ud_web_site_configuration DROP COLUMN application_name;

posted on 2016-05-10 15:48  qinyahui  阅读(8304)  评论(0编辑  收藏  举报