How can we change the name of a column of a table?
Answer Posted / nithya
changing a column name differs from the type of database we use.
MySQL:
ALTER table customer CHANGE Address Addr char(50);
Oracle:
ALTER table customer RENAME COLUMN Address TO Addr;
SQL Server:
It is not possible to rename a column using the ALTER TABLE
statement in SQL Server. Use sp_rename instead.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I show users in mysql?
What is table level locking in mysql?
What is mysqlcommand?
What is horizontally scalable?
How large can a mysql database become?
What is limit in mysql?
What is foreign key in mysql?
Explain what is mysql?
Why to use char instead of varchar in the database?
How do I insert an image into mysql workbench?
How can you calculate the sum of any column of a table?
What is mysqli_free_result?
what is database white box testing? : Mysql dba
What is a data directory?
How do I use mysql?