Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > CREATE Temporary TABLE >

Column Definition

Use the Column Definition segment of CREATE Temporary TABLE to list the name, data type, default value, and constraints of a single column.

Read syntax diagramSkip visual syntax diagramColumn Definition:
 
                         (1)
|--column--| Data Type |-------+-------------------------+------>
                               |                    (2)  |
                               '-| DEFAULT Clause |------'
 
>--+------------------------------------------+-----------------|
   |                                     (3)  |
   '-| Single-Column Constraint Format |------'
 

Notes:
  1. See page Data Type
  2. See page DEFAULT Clause
  3. See page Single-Column Constraint Format

Element Description Restrictions Syntax
column Name declared here for a column in the table Must be unique in its table Identifier, p. Identifier

This portion of the CREATE Temporary TABLE statement is almost identical to the corresponding section in the CREATE TABLE statement. The difference is that fewer types of constraints are allowed in a temporary table.

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