FOR MSSQL:
EXEC sp_rename 'TABLENAME.OLD_COLUMNNAME', 'NEW_COLUMNAME', 'COLUMN';
FOR MYSQL: use ALTER TABLE for this
ALTER TABLE tbl_name CHANGE [COLUMN] old_col_name new_col_name
You can rename a column using the CHANGE clause old_col_name new_col_name column_definition. To do this, specify the old and new column names and the definition that the current column has. For example, to rename an INTEGER column from a to b, you can do this:
ALTER TABLE t1 CHANGE ab INTEGER;
Xander Mar 15 '10 at 15:16 2010-03-15 15:16
source share