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 / manish ranjan

1. Char is fundamental data type. VARCHAR2 is derived one.
2. Char allocates static memory space while VARCHAR2
allocates dynamic memory.
3. Char is required to maintain compatibility with other
tools (Reporting, DWH, Data related).
4. Char is faster than VARCHAR2 (for large text).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a recursive join sql?

804


What is count * in sql?

747


What is denormalization in a database?

788


Differentiate between pl/sql and sql?

805


Is left join same as inner join?

723






How does pl sql work?

705


What is pl sql record in oracle?

756


Can we delete column in sql?

765


What plvcmt and plvrb does in pl/sql?

1059


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

811


What is a left join?

693


How many types of keys are there in sql?

756


How do you explain an index?

987


What is anonymous block in sql?

820


What is the use of index in hive?

727