Moeb
Moeb

Reputation: 10871

What is the difference between these three Oracle datatypes?

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

Answers (2)

Tony Andrews
Tony Andrews

Reputation: 132750

It is all covered quite comprehensively in the Oracle documentation.

Upvotes: 3

Related Questions