Answers for "rename a column in a table sql"

SQL
0

cmd to rename a collumn name in sql

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
Posted by: Guest on June-21-2020
-2

modify column name in tsql

sp_rename 'table_name.old_column', 'new_name', 'COLUMN';
Posted by: Guest on May-08-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language