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

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

    use this syntax: alter table table_name modify column col_name varchar (10000);

提交回复
热议问题