1.0

Table Of Contents
Example with BUCKETS, RECOVERYDELAY, and MAXPARTSIZE
-- example showing how to specify the BUCKETS, RECOVERYDELAY
-- and MAXPARTSIZE
CREATE TABLE COUNTRIES
(
COUNTRY VARCHAR(26) NOT NULL,
COUNTRY_ISO_CODE CHAR(2) NOT PRIMARY KEY,
REGION VARCHAR(26),
) PARTITION BY PRIMARY KEY BUCKETS 10 RECOVERYDELAY 10
MAXPARTSIZE 50
SERVER GROUPS Clause
The servers on which the table will be created is either specied by the SERVER GROUPS clause or deduced
from the colocated parent table's server groups, if a colocation clause is specied. If the server groups are not
specied, the default is to create the table on the default server group of the schema. The default group is specied
in the DEFAULT SERVER GROUP directive of the CREATE SCHEMA on page 448 statement. If no server
group is specied for the schema, the implicit default server group is used, which includes all servers in the
distributed system.
The server group names that you specify are converted to all-uppercase characters.
Note: In order for two partitioned tables to be colocated, the SERVER GROUPS clauses in both CREATE
TABLE statements must be identical. In order for replicated tables to be colocated, both tables must
specify the same server groups or one table's server groups must be a subset of the other table's server
groups.
Note: You can congure both partitioned tables and replicated tables to use a gateway sender. However,
you must create replicated tables in the same server groups as the gateway sender(s) that you specify in
the CREATE TABLE statement. See Syntax on page 443.
Example with SERVER GROUPS Clause
CREATE TABLE COUNTRIES
(
COUNTRY VARCHAR(26) NOT NULL,
COUNTRY_ISO_CODE CHAR(2) NOT PRIMARY KEY,
REGION VARCHAR(26),
) SERVER GROUPS (SG1, SG2)
GATEWAYSENDER Keyword
The GATEWAYSENDER keyword associates the new table with one or more named gateway senders, so that
DML operations against the table are replicated to the remote SQLFire cluster associated with the sender(s).
Note: You can optionally use the SQLFire ALTER TABLE command to add or remove gateway senders
after you have created a table.
461
SQL Language Reference