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
How to see the create table statement of an existing table?
Is pdo more secure than mysqli?
How to determine the location of the data directory?
How many columns can a table have?
Write a command to list all databases in mysql?
How can I create a database in mysql?
can you tell what are the different set operations available in mysql? : Mysql dba
Why mysql is open source?
How do I change mysql password?
What language does mysql use?
What is the current root password of mysql?
What is database engine in mysql?
What is truncate in mysql?
How do I run mysql?
Which statement is used in a select query for partial matching?