change和modify的区别

同:均可用于alter语句中,修改字段属性;

异:change可用于字段重命名,句式与modify也不用(多输一个字段名):

alter table 表名 change 旧字段名 新字段名 字段属性;
alter table 表名 modify 字段名 字段属性;

猜你喜欢

转载自blog.csdn.net/qq_42254088/article/details/81584834