HOW TO RENAME A COLUMN NAME
Answers were Sorted based on User's Feedback
Answer / ravikv
SP_Rename 'dbo.table_name.column_name','new column_name'.
| Is This Answer Correct ? | 27 Yes | 4 No |
Answer / ram&saran
SP_RENAME '<table_name>.<old_column_name>','<new_column_name>'
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / praveen kumar.dandu
suppose we had a table name emp and columns ename and sal.
<sql>alter table emp rename column sal to salary;
it wll rename the column sal to salary
| Is This Answer Correct ? | 5 Yes | 12 No |
What is meant by indexing?
How to list all columns in a table using odbc_columns()?
How to round a numeric value to a specific precision?
How to use “drop” keyword in sql server and give an example?
What is the purpose of linked server configuration in sql server?
In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp;
What are the commands used in DCL?
Explain about nested stored procedure?
What is the Query of getting last 10 transaction Reports (like insert, update, Delete Data from Tabele) ?
What are the steps need to be take improve the speed of a SQLDATA Server?
what is datawarehouse?
What is the maximum size per database for sql server express?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)