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

Answer Posted / m. ravindar

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

Is This Answer Correct ?    63 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you kill a long running query in mysql?

461


Is mysql a scripting language?

465


What is mysqladmin flush hosts?

496


What is mysql server used for?

477


What is the difference between float and double?

587






What do you need to connect php to mysql?

525


What can I do with mysql?

500


What are the limitations of mysql?

502


How can we convert between Unix & MySQL timestamps?

462


What is trigger in mysql with example?

489


What is the datatype for password in mysql?

519


What does mysqli stand for?

491


Can you tell a way to know the number of days between the two given dates in php?

581


What are the 'mysql' command line options?

502


Explain about reporting services of MYSQL?

609