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 difference between CHAR and VARCHAR2?What is the
maximum SIZE allowed for each type?

Answer Posted / sravanthi

Let us declare to variables as below:
v_empname CHAR2(10) := 'BILL';
v_depname VARCHAR2(10) := 'HRD';
the database allocates 10 bytes memory for v_empname and
just 3 bytes memory for v_deptname.
when a variable is declared varchar then the memory will be
allocated variably.
So,if one is not sure of the data that the variable is
going to hold then VARCHAR2 should be used instead of CHAR
during declaration.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need cursors in pl sql?

1147


What are the different types of dbmss?

1054


What is the use of desc in sql?

1015


How do you select unique values in sql?

1040


what is rollback? : Sql dba

1176


How does one use sql*loader to load images, sound clips and documents? : aql loader

1230


What is left join in sql?

1089


what are the different type of normalization? : Sql dba

1063


What is the difference between nvl function, ifnull function, and isnull function?

1149


What is pragma in sql?

1119


Can you have more than one key in a database?

986


What are the types of triggers in sql?

1140


Why is stored procedure faster than query?

1017


What is coalesce sql?

1048


What does (+) mean in sql joins?

1114