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
What is the latest version of mysql?
How to list or view all databases from the mysql server.
Which is better sqlite or mysql?
How do I flush privileges in mysql?
What is difference between mysql and mysqli?
How do I enable mysqli extension?
Is mysql a database?
What does the file with the extension: frm, myd, and myi contain?
How do you connect MySQL database with PHP?
How to show certain selected rows with the value "pcds".
How to use count function in mysql?
How can you calculate the sum of any column of a table?
What is datadir?
What are date and time data types?
How to Join tables on common columns.