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 / chandu

Have more diff between char and varchar2

char size only 2000 bytes in sql, default size is 1 byte.
it will occupying the trailing spaces. so much of memory wasted.

varchar2 size 4000 bytes in sql and no default size.
it will not occupying the trailing spaces.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you rank data in sql?

597


Is sql procedural language?

649


What are inner and outer joins examples of both?

576


What is partition by in sql?

667


How do I remove sql developer from windows 10?

601






How do you optimize a query?

634


What is sql catalog?

665


What is the difference between left join and right join?

580


What is the purpose of a sql?

606


What is the example of procedure?

596


What is a temporal table?

583


How do I remove sql plus from windows 10?

662


how to present a past time in hours, minutes and seconds? : Sql dba

650


What are the query optimization techniques?

621


what is the difference between delete and truncate commands? : Sql dba

630