Database column data types considerations

Several column data types are available for you to use when we are creating new database table or columns. We can use any of the following data types for our custom database columns when you need to create a new database table or column. IBM recommends to use only the following types of column data types when we are creating a custom table. Other types of columns are not supported.Notes:


Data type differences between database types

The following table indicates the equivalent column data types for the different database types that are supported by WebSphere Commerce.

UDB DB2 Oracle Size limit for WebSphere Commerce
BLOB() BLOB 4 GB
TIMESTAMP TIMESTAMP -
INTEGER INTEGER 2,147,483,647
DECIMAL(,) DECIMAL(,) -
BIGINT NUMBER 9,223,372 x 1012
FLOAT NUMBER -
CHAR() VARCHAR2() 254
CHAR() FOR BIT DATA RAW() 32,673
VARCHAR() VARCHAR2() 32,672
CLOB() CLOB

  • (DB2) 1 GB

  • (Oracle) 4 GB

DATE DATE
DOUBLE NUMBER
SMALLINT SMALLINT


Related concepts
WebSphere Commerce database schema