Advertisement:
Over 100,000 Jobs Worldwide. Click
here
to find one for you.
FAQs Categories
Client Server Commands
Database Structure
Table Types or Storage Engines
Indexes
SQL Statements
Table Joins
Funtions and Operators
Tricky Select Queries
Speed Up Queries
Data Back Up
General Questions
Errors
What do you want to ask today?
Home
/
Database Structure
/
Tables
/
Question No: 84
How to change data type of an existing column?
I want to change data type of an existing column of the table. How to change data type of the column from varchar to char?
Answer No: 84
This can be changed using ALTER statement. Take an example:
ALTER TABLE `buyers` CHANGE `first_name` `first_name` CHAR(19);
Related MySQL FAQs to the Above FAQ
How to create table in MySQL?
How to create table based on existing tables?
What is temporary table and how to create it in MySQL?
How to describe a table in MySQL?
How to renaming a table in MySQL?
How to specify multiple alterations for a table?
How to get table metadata?
How to add new column into an existing table in MySQL?
How to add a new AUTO_INCREMENT field to an existing table?
How to drop a column from the existing table?
How to drop all existing tables in one go?
How to get columns of an existing table in MySQL?
How to delete table records?
How to set AUTO_INCREMENT value other than 1 in MySQL?
How to get copy of table structure in MySQL using query?
How to get constraints or keys of the existing table?
About Site
About FAQs
Affiliates and Sponsors
-
Site Map
-
Bookmark Us
-
Recommend this Site to Your Friend
-
Contact Us
-
Recently Added FAQs
-
Sulata iSoft - Limitless Solutions
-
careermidway.com
© 2007 - 2010 www.mysqlfaqs.net
All rights reserved. The site is owned and operated by
Mr. Javed Bhatti
- Pakistan.