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

What is sql procedures and functions?

745


How can I tell if sql is running?

761


What is full form of rtm?

721


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

706


What are different types of sql?

755






What is a table?

728


Is sql the best database?

672


What are the constraints available in sql?

781


What is sql resultset?

725


What can you do with pl sql?

769


what are the differences between require and include, include_once and require_once? : Sql dba

743


What do you understand by pl/sql packages?

768


What are the parts of a sql statement?

765


Can we use ddl statements in stored procedure?

881


Does mysql_real_escape_string prevent sql injection?

691