Changing the maximum length of a varchar column?

后端 未结 9 1603
[愿得一人]
[愿得一人] 2021-01-30 12:02

I\'m trying to update the length of a varchar column from 255 characters to 500 without losing the contents. I\'ve dropped and re-created tables before but I\'ve never been expo

9条回答
  •  感情败类
    2021-01-30 12:48

    This worked for me in db2:

    alter table "JOBS"  alter column "JOB_TITLE" set  data type varchar(30);
    

提交回复
热议问题