EXEC sp_rename '[表名].[原字段名称]', '[新字段名称]' , 'COLUMN'
例:EXEC sp_rename 'ia_bd_consumer_type.vc_consumer_code','vc_consumer_code_system','COLUMN'
例:EXEC sp_rename 'ia_bd_consumer_type.vc_consumer_code','vc_consumer_code_system','COLUMN'
本文介绍了一种使用EXEC sp_rename过程来更改SQL Server中表字段名称的方法。通过具体示例展示了如何将表中的某个字段从旧名称更改为新名称。
3286
9952