MySQL - How to increase varchar size of an existing column in a database without breaking existing data?

后端 未结 7 2060
渐次进展
渐次进展 2020-12-13 05:32

I have a column that is currently varchar(100) and I want to make it 10000.

is it as simple as

alter table table_name set          


        
7条回答
  •  轮回少年
    2020-12-13 06:18

    For me worked this one:

    ALTER TABLE tablename MODIFY fieldname VARCHAR(128) NOT NULL;

提交回复
热议问题