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

Is sql a programming?

970


What is the purpose of the primary key?

1058


What is a natural join sql?

965


how many tables will create when we create table, what are they? : Sql dba

1067


What is sql entity?

1091


Can we use views in stored procedure?

1029


What is crud stand for?

994


How does left join work in sql?

997


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1338


What are the types of sql commands?

1094


what is sub-query? : Transact sql

1095


what's the difference between a primary key and a unique key? : Sql dba

1040


What is the difference between function and procedure in pl/sql?

1074


What is cost in sql execution plan?

974


Explain the insert into statements in sql?

1003