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...


hai,

when to use char and varchar2....?


















































Answer Posted / gangaram

char- should be use when you know that the number of
characters in the coloumn field is constant .ex if the
gender is coloumn with char(1)- so only M and F are the two
options so char(1) is better to use than varchar2.
varchar2- first of all varchar2 is a oracle standard.
varchar2 is nothing but variable characters.
ex- if you have defined the column with varchar2(50) and
when u r inserting the record into that column with only 10
letter/characters then only 10 bits will be used instead of
50.
but if u declare char(50) full 50 bits is allocated for
that column. so even if u enter on 20 characters the space
utilized will be full 50 bits.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the dual table in oracle?

934


How will you write a query to get a 5th rank student from a table student_report?

1814


Explain the use of indexes option in exp command.

1066


How to display row numbers with the records?

1024


What is an Oracle index?

1606


What is instant client oracle?

972


List the types of joins used in writing subqueries?

943


What are the differences between char and varchar2 in oracle?

1076


What is parameterized cursor in oracle?

1067


How to insert a new row into a table in oracle?

1096


How to create additional tablespaces for an new database?

970


How to assign query results to variables?

1013


Is there any function in oracle similar like group_concat of mysql?

989


What is the scope of a local variable?

998


Explain the difference between a procedure and a function?

1091