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

Can we create clustered index without primary key?

517


What is the use of function "module procedure" in pl/sql?

662


Can we insert in view in sql?

559


what is a composite primary key ? : Sql dba

574


How do I write a sql query in pgadmin 4?

550






Why are sql stored procedures used?

611


How do you modify a table in sql?

557


How does a self join work?

512


define sql delete statement ? : Sql dba

549


What is the most common sql injection tool?

541


How do I filter in sql profiler?

532


How is indexing done in search engines?

527


Why do we need a foreign key?

542


Explain scalar functions in sql?

575


What is a database trigger?

603