max number of columns in a db2 table?

Answer Posted / suresh pabothu

Maximum table size (on a 32 bit system) 2 Gigabytes
Maximum number of tables in a data store 65535
Maximum number of indices on a table 15
Maximum length of a row in a table 64 kilobytes
Maximum number of columns in a foreign key 8
Maximum number of columns in an index 8
Maximum number of columns in a primary key 8
Maximum length of SQL statement 64 kilobytes
Maximum number of rows in a table Limited by table size
Maximum number of columns in a table 256
Maximum length for a CHAR column 32767 bytes
Maximum length for VARCHAR column 32767 bytes
Maximum length for BLOB column 2 Gigabytes -1
Maximum combined length for INT, SMALLINT, CHAR, DECIMAL,
DATE, TIME, and TIMESTAMP columns in a single record 32767
bytes
Maximum number of statement handles per connection 20
Maximum number of LOB locators 256
Maximum length of check constraints 32767 bytes

Maximum length of default value 32767 bytes

Maximum size of decimals 31 digits
Maximum length of each column in a single index 1024 bytes
Minimum year for a date value 0001
Maximum year for a date value 9999

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many databases can be created inside an instance in db2 ?

591


What is query_cache_limit?

541


What is the role of union all and union

646


What does db2 blu stand for?

658


Which component is responsible for db2 startup and shutdown?

622






What is an instance database?

598


Explain the benefits you can get from mainframe connect?

520


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

623


What is the physical storage length of date data type?

722


What os does db2 run on?

570


Why cursor is used in db2?

572


How to retrieve rows from a db2 table in embedded sql?

715


What is the difference between db2 and oracle?

671


What is ibm db2 connect?

570


What is isolation level in db2?

575