「postgre」调整表结构

修改字段varchar长度:

ALTER TABLE ip_location alter COLUMN city_name type character varying(40);


增加新的字段:

alter table ip_location add column country_id  INT NOT NULL DEFAULT 0;

 

posted on 2018-09-29 14:41  trako  阅读(179)  评论(0编辑  收藏  举报

导航