当前位置:Gxlcms > 数据库问题 > SQLServer 修改数据库字段类型

SQLServer 修改数据库字段类型

时间:2021-07-01 10:21:17 帮助过:330人阅读

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 修改数据库字段类型

标签:字段名   ble   保存   div   alt   设置   style   color   add   

人气教程排行