Reputation: 10871
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?
Upvotes: 0
Views: 154
Reputation: 132750
It is all covered quite comprehensively in the Oracle documentation.
Upvotes: 3
Reputation: 107407
I think this explains it directly http://www.orafaq.com/faq/what_is_the_difference_between_varchar_varchar2_and_char_data_types
Upvotes: 3