Create a fragmented table
To control where data is stored at the table level, you
can use a FRAGMENT BY clause when you create the table. The following
statement creates a fragmented table that stores data according to
a round-robin distribution scheme. In this example, the rows of data
are distributed more or less evenly across the fragments
dbspace1
, dbspace2
,
and dbspace3
. CREATE TABLE name
(
rec_num SERIAL PRIMARY KEY,
lname CHAR(20),
fname CHAR(20),
bdate DATE,
anniv DATE,
email VARCHAR(25)
) FRAGMENT BY ROUND ROBIN IN dbspace1, dbspace2, dbspace3;
For more information about the different distribution schemes that you can use to create fragmented tables, see Table fragmentation strategies.