Before you create a fragmented table, you must decide on an appropriate distribution scheme for your tables. For advice on choosing a distribution scheme that meets your needs, see the INFORMIX-Universal Server Administrator's Guide. Fragmenting a New Table To create a fragmented table, use the FRAGMENT BY clause of the CREATE TABLE statement. Suppose that you wish to create a fragmented table similar to the stores7 table, orders. You decide on a round-robin distribution scheme with three fragments. Consult with the Universal Server administrator to set up three dbspaces, one for each of the fragments: dbspace1, dbspace2, and dbspace3. To create the fragmented table, execute the following SQL statement:
Creating a Fragmented Table from Nonfragmented Tables You might need to convert nonfragmented tables into fragmented tables in the following circumstances:
Creating a Fragmented Table from a Single Nonfragmented Table To create a fragmented table from a nonfragmented table, use the INIT clause of the ALTER FRAGMENT statement. For example, suppose you want to convert the table orders to a table fragmented by round-robin. The following SQL statement performs the conversion: