Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements >

CREATE TEMP TABLE

Use the CREATE TEMP TABLE statement to create a temporary table in the current database.

Syntax

Read syntax diagramSkip visual syntax diagram>>-CREATE--TEMP--TABLE--table--| Table Definition |------------><
 
Table Definition:
 
        .-,--------------------------.
        V                       (1)  |                                                                     (3)
|----(----| Column Definition |------+--+------------------------------------------------+--)--| Options |--------->
                                        |    .-,---------------------------------------. |
                                        |    V                                  (2)    | |
                                        '-,----+-| Multiple-Column Constraint |------+-+-'
                                               |                       (1)           |
                                               '-| Column Definition |---------------'
 
>--+-------------+----------------------------------------------|
   '-WITH NO LOG-'
 
Notes:
  1. See page CREATE Temporary TABLE
  2. See page Multiple-Column Constraint Format
  3. See page Temporary Table Options
Element Description Restrictions Syntax
table Name declared here for a temporary table Must be unique among the names of temporary tables in the same session Identifier, p. Identifier

Usage

The CREATE TEMP TABLE statement is a special case of the CREATE Temporary TABLE statement. The CREATE Temporary TABLE statement can also create a SCRATCH table in an Extended Parallel Server database.

For the complete syntax and semantics of the CREATE TEMP TABLE statement, see CREATE Temporary TABLE .

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]