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

Consider a scenario where you have to send an email to a client from the sql database. How do you think you can achieve this task?

518


How to convert dates to character strings?

552


How do I install mysql on windows 10?

517


What is mysql gpl?

485


What is the difference between truncate and delete in mysql?

542






What is the difference between truncate and delete?

606


Is mysql still relevant?

529


How can we find out which auto increment was assigned on Last insert?

634


How do I enable mysqli extension?

503


How do I truncate all tables in mysql?

496


Is sql and mysql same?

517


Explain about the architecture of MYSQL?

564


How can you see all indexes defined for a table?

627


How do you kill a long running query in mysql?

474


how you will Create a database on the mysql server with unix shell.

565