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 difference between sharding and replication?

1034


How to convert characters to dates in oracle?

1091


What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?

2126


How many types of tables are there in oracle?

1055


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

2320


What are the differences between blob and clob in oracle?

1082


What is concurrency in oracle?

1003


Give syntax for SQL and ORACLE joins.

1092


How to export your connection information to a file?

1123


Does oracle partitioning improve performance?

988


how to handle exceptions in post production

1416


How to delete a column in an existing table?

1072


What is bulk collect in oracle?

994


Difference between oracle's plus (+) notation and ansi join notation?

1096


How to create a stored procedure in oracle?

1100