What is the difference between CHAR and VARCHAR2? If
VARCHAR2 serves the uses of CHAR why CHAR is still used and
not been discarded yet?

Answer Posted / pradeep

in char it allocates the memory space as static where as in
varchar2 it allocates the memory space as dynamic.

Another difference is accessing a variable declared as char
is faster than, accessing a varchar2. So CHAR is still used

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is there a need for sqlcode and sqlerrm variables?

754


What is trigger explain it?

736


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

724


What is the difference between nested table and varray?

681


what are all the different types of indexes? : Sql dba

710






How do I view tables in mysql?

720


What are all the ddl commands?

852


What is parallel hint?

933


how to drop an existing view in mysql? : Sql dba

787


Describe types of sql statements?

720


What is range partitioning?

689


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

696


Can you have more than one trigger on a table?

704


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3713


How do you remove duplicates without using distinct in sql?

691