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

后端 未结 6 2105
春和景丽
春和景丽 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:46

    you can use this below sql command
    ALTER TABLE client_details ALTER COLUMN name TYPE varchar(200)

提交回复
热议问题