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
In which year mysql created?
Is mariadb faster than mysql?
Explain csv tables.
What are the different types of triggers in mysql?
How do I start and stop mysql on windows?
What are the different tables present in MySQL?
What is a select query?
How to use like conditions?
What are the technical features of MySQL?
What is mysql server?
How do I show columns in mysql?
What is mysql and mysqli?
Explain the different types of constraints?
Where is mysql installed on linux?
Is mysql a free database?