How can we change the name and data type of a column of a
table?

Answer Posted / m. ravindar

To Change Name of Column:
Sy: Alter Table <Table Name> Change <Old ColumnName> <New
ColumnName>;
Ex: Alter Table Test Change EmpId EID varchar(5);

Is This Answer Correct ?    17 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a free mysql?

496


Write a query to stop mysql in unix

621


What are the security alerts while using mysql?

577


What is unsigned int in mysql?

495


How to see table's field formats or description of table .

461






What is mysql and mysqli?

479


Is mysql easy to learn?

486


Where is the myisam table stored?

532


What are the differences between a primary key and foreign key?

570


What is mysql and how it works?

462


Is mysql case-sensitive?

494


What is not null in mysql?

516


How do I download mysql on my laptop?

486


Why should I learn mysql?

490


How set mysql root password?

494