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

Answer Posted / ashish

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

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mysql and why it is used?

549


How do I create a mysql username and password?

489


Why do we use preparedstatement?

475


Is mysql free download?

467


Is mysql good for big data?

488






What is delimiter in mysql trigger?

514


What is a left join mysql?

460


What are the disadvantages of stored procedures?

481


How to create table with same structure of student table in mysql?

459


What do I do if I forgot my mysql root password?

467


How many entries can mysql handle?

492


In how many ways we can retrieve data in the result set of mysql using php?

603


How many rows can be inserted in mysql at a time?

485


How set mysql root password?

478


Why do we use the mysql database server?

520