> Hi All;
> On DB2 (OS390) v7.1 is there any reason to avoid the use of varchar()
[quoted text clipped - 9 lines]
>
> Pete H
If that column never gets updated (with a larger value) go ahead and make it
varchar. If the column is updated, it might not fit back on the same page,
and that can cause lots of performance problems if that happens frequently
on lots of rows.
Varchar has storage overhead of 2 bytes (half word binary) to indicate the
length of the data.
Anton Versteeg - 05 Mar 2004 08:57 GMT
Also note that on OS/390 you can compress data (albeit at the cost of
some CPU overhead).
So a char with a lot of blanks (or other repeating characters) might
take the same or perhaps even less space than a varchar.
>
>
[quoted text clipped - 22 lines]
>
>

Signature
Anton Versteeg
IBM Certified DB2 Specialist
IBM Netherlands