# 修改字段名称为临时字段 exec sp_rename 'data_config.description', description1,'COLUMN';
# 创建新的字段并设置为目标格式
alter table data_config add description text ;
# 把临时字段中的值保存到新字段 update data_config set description = description1;
# 删除临时字段 alter table data_config drop column description1;
SQLServer 修改数据库字段类型
猜你喜欢
转载自www.cnblogs.com/Leechg/p/12696938.html
今日推荐
周排行