Varchar datatype -
05-10-2011
, 02:49 PM
I am migrating from version 8.1 of DB2 to 9.7. Right now I have the
9.7 Express-C version installed on my laptop. I am using the 64-bit
version with Windows 7 professional 64 bit. I have attempted to create
a database with a large varchar field, (~15000), and when I do it
fails saying
the largest allow field is 4005 bytes. I have listed below the section
of the run file that is giving me the problem. From what I saw on the
web site, the varchar type will support up to 32K field. Any help
would be appreciated. Thank you.
create table sosdb.nsnmaster
(FSC smallint not null,
STATUS char(1) not null with default,
NIIN int not null,
KEYWORD_CODE int not null with default,
PIC char(1) not null with default,
QCC char(3) not null with default,
CRITICAL_ITEM char(1) not null with default,
AMC char(2) not null with default,
UNIT_OF_ISSUE char(2) not null with default,
PGK_INFO char(12) not null with default,
HAZARDOUS_MAT char(1) not null with default,
QTY_UNIT_PACK char(3) not null with default,
PACK_REQ_ABC char(2) not null with default,
OPT_PACK_IND char(1) not null with default,
INT_CONT_CODE char(2) not null with default,
INT_CONT_UNIT_PCK char(3) not null with default,
SPEC_MARK_CODE char(2) not null with default,
SPC_PCK_INST char(10) not null with default,
SPC_PCK_REV char(1) not null with default,
SPC_PCK_DTE date not null with default,
PALLET_REQ char(1) not null with default,
PALLET_INST_NUM char(10) not null with default,
PALLET_INST_REV char(1) not null with default,
PALLET_INST_DATE date not null with default,
UNIT_WEIGHT dec(3,1) not null with default,
DESCRIPTION varchar(15360) not null with default)
in nsnmaster; |