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

Answer Posted / abhishek

ALTER TABLE `<tablename>` CHANGE `<old column>` `<new
column>` new datatype( length )

Is This Answer Correct ?    5 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In mysql, what is joins? Explain

537


How do I switch users in mysql?

497


what is the difference between between and in operators in mysql?

503


How to use in conditions?

532


Is mysql case-sensitive?

493






In how many ways we can retrieve the data in the result set of MySQL using PHP? What is the difference between mysql_fetch_object and mysql_fetch_array ?

539


What are the functions used to encrypt and decrypt the data present in mysql?

538


How do I edit a trigger in mysql?

488


What are procedures in mysql? Explain

531


What is mysql data directory?

530


Why is mysql popular?

493


Difference between CHAR and VARCHAR?

591


How to display top 10 rows in mysql?

580


What does blob mean in mysql?

494


What are ddl statements in mysql?

546