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 are sql injection vulnerabilities?

493


How can a pl sql block be executed?

522


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

568


how to escape special characters in sql statements? : Sql dba

503


What is dynamic query?

529






What are the sql commands?

601


How do you break a loop in pl sql?

517


what is a database lock ? : Sql dba

585


What is rownum?

531


how to get @@error and @@rowcount at the same time? : Sql dba

522


Does user triggers have entry for trigger with compilation errors?

584


which tcp/ip port does sql server run on? : Sql dba

506


How many types of functions are there in sql?

496


What are different types of tables in sql?

524


What is left join in sql?

573