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

Can we write procedure in mysql?

513


What is a trigger in mysql?

558


What is mysql_pconnect?

475


What is trigger in mysql with example?

501


List some mysql advantages and disadvantages?

545






How will show all records containing the name "sonia" and the phone number '9876543210'

533


What is unsigned in mysql?

523


What are the 'mysql' command line arguments?

543


Can we use mysql and mysqli together?

514


In mysql, what is the default storage engine?

517


What is different between sql and mysql?

510


Can mysql function return a table?

605


What are the three types of queries?

470


Can mysql store files?

506


How we can create index in mysql?

519