NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
L-11
Limits
°
SQL assigns rows to partitions until it either runs out of primary key values or
runs out of space declared for the table. You cannot specify partitions that would
require primary key values greater than 4,294,963,199.
°
The bigger your partitions are, the fewer you can specify.
°
When you define a partition for a relative or entry-sequenced table, you do not
specify the range of rows to be stored in the partition. SQL determines where
rows are stored.
Predicates per query
The maximum number of predicates allowed in a NonStop SQL/MP query is
approximately 290. The exact limit depends on the combination of predicates and
column data types.
This is a Guardian operating system limitation.
Prepared statements
You can have up to 20 prepared statements in an SQLCI session. (Programs can
have more prepared statements.)
Primary key
See Syskeys
on page S-90, Clustering Keys on page C-26, or User-Defined Keys on
page U-17.
Row length
Row length is the sum of the lengths of the columns of a table. For each column that
can contain null values, add 2 bytes to the column length when computing this sum.
The length of a varying-length character column is its maximum declared length
plus 2 bytes.
The maximum row length is the block size minus space for a file header. (The
BLOCKSIZE attribute controls block size.) A header is 32 bytes for key-sequenced
tables and 22 bytes for relative and entry-sequenced tables. In addition, there are
two bytes overhead for each row in a block.
Statement length
The maximum length of a NonStop SQL/MP statement is 32,767 characters,
including blanks.
Subquery nesting
Queries can be nested a maximum of 16 levels, including the outermost query.
SYSKEY value
The value range allowed for a SYSKEY (system-defined primary key) is 0 through
4,294,963,199 for the 4-byte primary key used in a table with relative or entry-
sequenced file organization; the range is 0 through 2**63-1 for the 8-byte primary
key (actually, a timestamp) used in a table with key-sequenced file organization.
Tables per query