Increasing the size of character varying type in postgres without data loss

后端 未结 6 2107
春和景丽
春和景丽 2021-02-06 20:54

I need to increase the size of a character varying(60) field in a postgres database table without data loss.

I have this command

alter table client_deta         


        
6条回答
  •  深忆病人
    2021-02-06 21:39

    The correct query to change the data type limit of the particular column:

    ALTER TABLE client_details ALTER COLUMN name TYPE character varying(200);
    

提交回复
热议问题