HOW TO RENAME A COLUMN NAME

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by an execution plan? Why is it used? How would you view it?

612


What are the five major components of a dbms?

594


in the physical file layout, where should the transaction log be stored in relation to the data file?

625


What command is used to rename the database?

605


Explain linked server in sql?

780






What protocol does sql server use?

602


How to generate create table script on an existing table in ms sql server?

742


How many triggers are possible per table?

720


What are the character string functions supported by sql server 2005?

601


Explain syntax for disabling triggers?

605


How to add a new column to an existing table with "alter table ... Add" in ms sql server?

663


Can sql server be linked with other servers like oracle?

607


What is the purpose of sql profiler in sql server?

591


What are the grouping functions?

615


How to return the second 5 rows in ms sql server?

713