Modify column Vs change column

前端 未结 5 1135
南旧
南旧 2020-11-30 01:33

I know, we can not rename a column using modify column syntax,but can change column syntax.

My question is: what is the main usage of

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 02:22

    I found one difference after more than an hour of effort in trying to make a non auto_increment column into auto_increment statement: alter table doctor_experience modify column id int(11) unsigned auto_increment works, but statment: alter table doctor_experience change column id id int(11) unsigned auto_increment will report an error.

提交回复
热议问题