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

How do you update a value in sql?

985


What are different types of statements supported by sql?

1096


Can a view be mutating? If yes, then how?

960


How delete a row in sql?

926


Explain polymorphism in pl/sql.

1056


What is trigger in pl sql with examples?

979


What is embedded sql with example?

985


How do I add a database to sql?

1063


who introduced sql?

948


How to return an array from java to pl/sql?

1061


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

900


What are the steps for performance tuning.

1268


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

990


Why do we use procedures?

912


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

906