rename table sql query code example
Example 1: rename table sql
ALTER TABLE STUDENTS
RENAME TO ARTISTS;
Example 2: how to rename columns in sql server
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';
Example 3: sql rename column in select query
SELECT data.column AS `Label`