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

How do you create a primary key?

1055


How to convert dates to character strings?

1132


How we can see all indexes defined for a table in mysql?

998


table a has records 1,1,1,1 table b has records 1,1,1,1,1,1 what would be out if perform join for all cases

1436


What is query design?

953


What are the different column comparison operators in mysql?

988


What is different between sql and mysql?

1066


What are the different mysql database engines?

1230


What is action query?

946


What is mysql procedure?

977


Is mysql a programming language?

949


Is mysql a dbms?

947


Tell us something about heap tables?

1044


How to represent ENUMs and SETs internally?

1164


How do I show users in mysql?

1115