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
What is difference mysql and mysqli?
What are the differences between char and varchar?
How do I view a mysql database?
What is mysqlcommand?
Is mysql distributed?
How can an index be declared in mysql?
What are the 3 main types of search queries?
HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE
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?
How do I create a mysql username and password?
What is the datatype of image?
What is 'mysqladmin' in mysql?
What is mysqli_select_db?
What are the objects can be created using CREATE statement?
What is a query in mysql?