📜  更改列名 mssql 代码示例

📅  最后修改于: 2022-03-11 15:05:05.761000             🧑  作者: Mango

代码示例1
--The following example renames the column TerritoryID in the table Sales.SalesTerritory to TerrID in the AdventureWorks database.

EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';