Answers for "rename column dbsql"

SQL
1

rename column mysql

ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
(you can remove the backticks if it doesn't work)
Posted by: Guest on June-06-2020
0

tsql rename column name

sp_rename 'table_name.old_column_name', 'new_column_name', 'COLUMN';
Posted by: Guest on February-17-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language