Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Database compression..?
On Wed, 7 Apr 1999 18:04:17 +0100, "Jonathan Lewis"
<jonathan_at_jlcomp.demon.co.uk> wrote:
>The last time I checked it (7.3.3.5 I think), a null CHAR
>was stored as a null, not as a string of chr(32). So the
>total cost of storing a non-trailing null CHAR as just
>the one-byte 'length byte'.
I stand corrected (I'm sitting actually).
In a slightly different case, though, if someone stores 'xxx' in a varchar2 column, it's 3 bytes, but the same 'xxx' gets stored as 5 bytes in a char column. So the savings can be significant.
Chris