同:均可用于alter语句中,修改字段属性;
异:change可用于字段重命名,句式与modify也不用(多输一个字段名):
alter table 表名 change 旧字段名 新字段名 字段属性;
alter table 表名 modify 字段名 字段属性;
同:均可用于alter语句中,修改字段属性;
异:change可用于字段重命名,句式与modify也不用(多输一个字段名):
alter table 表名 change 旧字段名 新字段名 字段属性;
alter table 表名 modify 字段名 字段属性;