Oracle V11.1

Description    Example

>>──CREATE─┬──────────────────┬─TABLE──schema.──table──┬─relational_table─┬─>
           └─GLOBAL TEMPORARYβ”€β”˜                        β”œβ”€object_table──────
                                                       └─XMLtype_tableβ”€β”€β”€β”€β”˜

Oracle V9.0-10.2

Description    Example

>>─┬─relational_table─┬───><
   β”œβ”€object_table──────
   └─XMLtype_tableβ”€β”€β”€β”€β”˜

Note: The XMLtype_table clause was added with Oracle 9.2.


Oracle V8.1

Description    Examples

relational_table

>>─CREATE─┬──────────────────┬─TABLE─┬─────────┬─table─────────>
          └─GLOBAL TEMPORARYβ”€β”˜       └─schema.β”€β”˜

>─(relational_properties)─┬─────────────────────────────┬──────>
                          └─ON COMMIT─┬─DELETE───┬─ROWSβ”€β”˜
                                      └─PRESERVEβ”€β”˜

>─┬─────────────────────┬─┬──────────────────┬────────────────><└─physical_propertiesβ”€β”˜ └─table_propertiesβ”€β”˜

object_table

>>─CREATE─┬──────────────────┬─TABLE─┬─────────┬─table─────────>
          └─GLOBAL TEMPORARYβ”€β”˜       └─schema.β”€β”˜

>─OF─┬─────────┬─object_type─┬─────────────────────┬───────────>
     └─schema.β”€β”˜             └─(object_properties)β”€β”˜

>─────┬─────────────────────────────┬─┬──────────────────┬─────>
      └─ON COMMIT─┬─DELETE───┬─ROWSβ”€β”˜ └─table_propertiesβ”€β”˜
                  └─PRESERVEβ”€β”˜

>─┬────────────┬┬──────────────────┬┬─────────────────────┬───><└─OID_clauseβ”€β”˜β””β”€OID_index_clauseβ”€β”˜β””β”€physical_propertiesβ”€β”˜

Oracle V8.0

Description

Relational Table

>>──CREATE TABLE──┬───────────┬──table_name─────────────────────────────────────>
                  └──schema.β”€β”€β”˜
>─┬───────────────────────────────────────────────────────────────────────────┬─>
  β”‚   v───────────────────────────────── , ─────────────────────────────────┐ β”‚
  β””(─┬─column─datatype─┬────────────┬┬─────────────────┬┬─────────────────┬┬┴)β”˜
     β”‚                 β””DEFAULT exprβ”˜β””column_constraintβ”˜β””column_ref_clauseβ”˜β”‚
     └┬─table_constraintβ”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      └─table_ref_clauseβ”€β”˜

>──┬───────────────────────────────────────────────────────┬────────────────────>
   β”œβ”€β”€segment_attributes_clause─────────────────────────────
   β”œβ”€β”€ORGANIZATION─┬─INDEX──index_organized_table_clause─┬──
   β”‚               └─HEAPβ”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”˜ β”‚
   β”‚                      └─segment_attributes_clauseβ”€β”˜    β”‚
   β”‚                           v──── , ────┐               β”‚
   └───CLUSTER cluster_name ( ─── column ──┴─ ) β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

>──┬─────────────────────────────────────────────────┬──────────────────────────>
   β”œβ”€LOB_storage_clause───────────────────────────────
   └─NESTED TABLE nested_item STORE AS storage_tableβ”€β”˜

>──┬────────────────────────┬───────────────────────────────────────────────────>
   └─table_partition_clauseβ”€β”˜

                      v──────────── , ──────────┐
>──┬─────────────────┬┬────────────────────────┬┴─┬─────────────┬┬─────────┬───><└─parallel_clauseβ”€β”˜β”œβ”€ENABLE enable_clause────  └─AS subqueryβ”€β”˜β”œβ”€CACHE────
                      └─DISABLE disable_clauseβ”€β”˜                 └─NOCACHEβ”€β”˜

Object Table

>>──CREATE TABLE──┬─────────┬──table_name──OF──┬─────────┬──object_type─────────>
                  └─schema.β”€β”˜                  └─schema.β”€β”˜
>──┬─────────────────────────────────────────────────────────────────────────┬──>
   β”‚  v────────────────────────────────── , ──────────────────────────────┐  β”‚
   β””(─┬┬─column────┬┬────────────┬┬─────────────────┬┬─────────────────┬─┬┴)β”€β”˜
      │└─attributeβ”€β”˜β””DEFAULT exprβ”˜β””column_constraintβ”˜β””column_ref_clauseβ”˜ β”‚
      └┬─table_constraintβ”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       └─table_ref_clauseβ”€β”˜

>──┬─────────────────────────────────────────────────┬┬──────────────────────┬──>
   β”œβ”€segment_attributes_clause────────────────────────└table_partition_clauseβ”˜
   β”œβ”€LOB_storage_clause───────────────────────────────
   └─NESTED TABLE nested_item STORE AS storage_tableβ”€β”˜

>──┬────────────────────────────────────────────────────────┬───────────────────>
   └─OIDINDEX──┬───────┬─(─┬─physical_attributes_clause─┬─)β”€β”˜
               └─indexβ”€β”˜   └─TABLESPACE tablespaceβ”€β”€β”€β”€β”€β”€β”˜

   v──────────── , ──────────┐
>──┬────────────────────────┬┴─┬─────────────┬┬─────────┬──────────────────────><β”œβ”€ENABLE enable_clause────  └─AS subqueryβ”€β”˜β”œβ”€CACHE────
   └─DISABLE disable_clauseβ”€β”˜                 └─NOCACHEβ”€β”˜

Oracle V7.3

>>──CREATE TABLE──┬───────────┬──table_name────────────────────────────>
                  └──schema.β”€β”€β”˜
      v─────────────────────── , ───────────────────────────────┐
>───(──┬──column─datatype─┬──────────────┬┬───────────────────┬┬┴──)───>
       β”‚                  └─DEFAULT exprβ”€β”˜β””β”€column_constraintβ”€β”˜β”‚
       └──table_constraintβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

>───┬──┬────────────────────┬────────────────────────┬─────────────────>
    β”‚  β”œβ”€β”€β”€PCTFREE x─────────                        β”‚
    β”‚  β”œβ”€β”€β”€PCTUSED x─────────                        β”‚
    β”‚  β”œβ”€β”€β”€INITRANS x────────                        β”‚
    β”‚  β”œβ”€β”€β”€MAXTRANS x────────                        β”‚
    β”‚  β”œβ”€β”€β”€TABLESPACE name───                        β”‚
    β”‚  β”œβ”€β”€β”€STORAGE clause────                        β”‚
    β”‚  └─┬─RECOVERABLEβ”€β”€β”€β”¬β”€β”€β”˜                        β”‚
    β”‚    └─UNRECOVERABLEβ”€β”˜                           β”‚
    β”‚                           v──── , ────┐        β”‚
    └───CLUSTER cluster_name ( ─── column ──┴─ ) β”€β”€β”€β”€β”˜
   v──────────── , ──────────────┐
>───┬──────────────────────────┬─┴──┬───────────────┬──────────────────>
    β”œβ”€β”€ENABLE enable_clause─────    └──AS subqueryβ”€β”€β”˜
    └──DISABLE disable_clauseβ”€β”€β”˜

>──┬────────────────────────────────────────────┬─┬─NOCACHE─┬─────────><β”‚               v──────────────────────┐     β”‚ └─CACHEβ”€β”€β”€β”˜
   β”œβ”€β”€β”€PARALLEL─(───┬─DEGREE───┬─integer─┬┴─┬─)──
   β”‚                β”‚          └─DEFAULTβ”€β”˜  β”‚   β”‚
   β”‚                └─INSTANCE─┬─integerβ”€β”¬β”€β”€β”˜   β”‚
   β”‚                           └─DEFAULTβ”€β”˜      β”‚
   └───NOPARALLELβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜