更改列名 change: alter table 表名 change 旧列名 新列名 类型
alter table 表名 change 旧列名 新列名 类型
只更改列属性 change: alter table 表名 列名 列名 类型 相同的列名要写两次.
alter table 表名 列名 列名 类型
更改列属性 modify: alter table 表名 列名 类型
alter table 表名 列名 类型
change 可以更改列名 和 列类型 (每次都要把新列名和旧列名写上, 即使两个列名没有更改,只是改了类型)
modify 只能更改列属性 只需要写一次列名, 比change 省事点