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

后端 未结 7 2053
渐次进展
渐次进展 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:31

    I am using mysql and below syntax worked well for me,

    ALTER TABLE table_name MODIFY col_name VARCHAR(12);
    

提交回复
热议问题