CREATE GROUP
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Creates a group for the specified table in a multi-tenant database. A multi-tenant group allows multiple tenants to map to the same table partition for a multi-tenant table and therefore share the same data for that table. All data within the table partition is shared by the multiple tenants that are part of the group.
You can create multiple groups for the same table. The areas specified in the command prompt must be pre-existing as valid Type II areas in the database.
Syntax
|
Parameters
- group_name
-
Specifies the name of the group for the multi-tenant table. The group name must be unique across the database.
- table_name
-
Specifies the table name. The name of a referenced table must be a valid multi-tenant table. The table name can be qualified by an owner (schema) name.
-
TABLE AREAarea_name -
Is used for database space allocation for the table, during the
CREATE GROUPstatement execution. The TABLE AREA must be specified. -
INDEX AREAindex_area_name -
Is used for database space allocation for the index, during the
CREATE GROUPstatement execution. The INDEX AREA specification is optional. The name of the storage area must be specified within double quotes.If the storage area for an index is omitted in the syntax, the TABLE AREA acts as its default area.
- LOB AREA
lob_area_name -
Is used for database space allocation for LOB, during the
CREATE GROUPstatement execution.The LOB AREA specification is optional. The name of the storage area must be specified within double quotes.If the storage area for a LOB is omitted in the syntax, the TABLE AREA acts as its default area.
- PRO_DESCRIPTION value
-
Allows you to enter the ABL description. The value attribute is an arbitrary character string.
- FOR TABLE
-
Specifies the name of the table for which the group is defined.
Example
The following example shows how to create a group for a table and allocate partition space for the table, index, and LOB:
|