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 / dinesh goyal

char is used for fixed length memory storage whereas varchar
is used for variable lenght memory storage.
Fox Example if we have char(10) then we can store 10 bit
value in it but if we store only 6 bit value in it then rest
of the 4 bit space is goes wasted. this limitation is
overcome by varchar.
In varchar if we use less space than define space the rest
of space is not wasted.

Is This Answer Correct ?    363 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by sharding?

881


How do I know if mysql is installed on windows?

877


Do I need python for mysql?

876


How can you plan the logshipping before processing?

2282


How do I connect to mysql database?

988


How do you backup a database in mysql?

1031


Why do gaps in sequences occur?

902


How do I assign a variable in mysql?

947


What is a transaction? Describe mysql transaction properties.

1047


What, if a table has one column defined as TIMESTAMP?

956


What are the critical issues you have resolved in your company

2188


How to write date and time literals?

982


What is data in mysql?

853


Is mysql free for commercial use?

863


How does mysql store data?

893