char
varchar
varchar2
I understand that varchar2(10)
will allocate space dynamically upto 10 bytes. char(10)
will allocate 10 bytes at the beginning and fill it with junk if the actual datalength is less.
If this is correct, what does varchar(10)
do?