rename table sql
ALTER TABLE STUDENTS
RENAME TO ARTISTS;
sql rename column
-- Oracle, MySQL 8+
ALTER TABLE table_name RENAME COLUMN current_name TO new_name;
-- MySQL < 8:
ALTER TABLE table_name CHANGE current_name new_name datatype(length);
-- SQL Server:
EXEC SP_RENAME 'table_name.current_name' , 'new_name', 'COLUMN'
how to rename columns in sql server
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';
change column name sql
ALTER TABLE `db_name`.`table_name`
CHANGE `current_column_name` `new_column_name` datatype(size) NOT NULL COMMENT '';
tsql rename column name
sp_rename 'table_name.old_column_name', 'new_column_name', 'COLUMN';
sql rename column in select query
SELECT data.column AS `Label`
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us