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 / preeti singh

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 ?    90 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is schema in mysql?

899


How to execute mysql query in php?

923


How do I copy a table in mysql?

950


How do I restore a mysql database dump file in linux?

979


What is the function of mysqldump?

1076


Which is faster innodb or myisam?

1059


What does mysql flush tables do?

973


How does triggers work in mysql?

976


Is mysql relational?

919


What do we use to remove duplicate records while fetching a data in mysql ?

967


Explain csv tables.

1020


What are the benefits of mysql?

937


What causes mysql too many connections?

964


Why are function needed?

947


how to take mysql database backup?

1076