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

what is the use of friend function? : Sql dba

1023


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

1035


How do you use join?

941


how to create a new table in mysql? : Sql dba

986


how do you know the version of your mysql server? : Sql dba

1004


Write a sql query to get the third highest salary of an employee from employee_table?

1073


What are the sql commands?

1180


What is sql query limit?

979


What is the basic structure of an sql?

1098


What is t sql in sql server?

1074


What is the difference between sql and t sql?

1034


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

951


Which function is used to return remainder in a division operator in sql?

1140


What is record in pl sql?

1083


What is sqlite used for?

1000