Download ThinkSQL User Guide

Transcript
|
|
|
|
<domain definition>
<schema routine>
<grant statement>
<sequence definition>
<drop schema statement> ::=
DROP SCHEMA <schema name> <drop behaviour>
<table definition> ::=
CREATE [ <table scope> ] TABLE <table name>
<table element list>
[ ON COMMIT <table commit action> ROWS ]
<table scope> ::=
<global or local> TEMPORARY
<global or local> ::=
GLOBAL
| LOCAL
<table commit action> ::=
PRESERVE
| DELETE
<table element list> :=
<left paren> <table element> [ { <comma> <table element> }… ]
<right parent>
<table element> ::=
<column definition>
| <table constraint definition>
<column definition> ::=
<column name>
{ <data type> | <domain name> }
[ <default clause> ]
[ <column constraint definition>… ]
<column constraint definition> ::=
[ <constraint name definition> ]
<column constraint> [ <constraint characteristics> ]
<constraint name definition> ::=
CONSTRAINT <constraint name>
<constraint characteristics> ::=
<constraint check time> [ [ NOT ] DEFERRABLE ]
| [ NOT ] DEFERRABLE [ <constraint check time> ]
<constraint check time> ::=
INITIALLY DEFERRED | INITIALLY IMMEDIATE
<column constraint> :=
NOT NULL
| <unique specification>
| <references specification>
| <check constraint definition>
<default clause> ::=
DEFAULT <default option>
69