Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between char and varchar data types?

Answer Posted / paras nath

The char is a fixed-length character data type, the varchar is a variable-length character data type.

Because char is a fixed-length data type, the storage size of the char value is equal to the maximum size for this column. Because varchar is a variable-length data type, the storage size of the varchar value is the actual length of the data entered, not the maximum size for this column.

You can use char when the data entries in a column are expected to be the same size.
You can use varchar when the data entries in a column are expected to vary considerably in size.

Is This Answer Correct ?    53 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bigint in mysql?

897


How do I start mysql in ubuntu?

1014


Explain the architecture models of SQL Server?

2314


what is the difference between between and in operators in mysql?

1015


What are the differences between mysql vs sql server?

1021


Why is it called mysql?

901


How to convert numeric values to character strings?

1040


What are the functions in mysql?

924


What is field in mysql?

914


List the different types of normalization?

934


How we can get distinct columns values in mysql?

1058


What is definer in mysql trigger?

898


Can you tell the difference between $message and $$message?

946


How to enter microseconds in sql statements?

959


Why MySQL is used?

1015