create table

Поиск
Список
Период
Сортировка
От LeoDeBeo
Тема create table
Дата
Msg-id 9chqd9$21vm$2@news.tht.net
обсуждение исходный текст
Ответы Re: create table  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: create table  (Joel Burton <jburton@scw.org>)
Re: create table  (Martín Marqués <martin@bugs.unl.edu.ar>)
Re: create table  ("Albert REINER" <areiner@tph.tuwien.ac.at>)
Список pgsql-sql
can anybody explain me the syntax of Create Table documentation??

CREATE [ TEMPORARY | TEMP ] TABLE table (       column type       [ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT value ]
[ column_constraint_clause | PRIMARY KEY } [ ... ] ]       [ , ... ]       [ , PRIMARY  KEY ( column [, ... ] ) ]
[, CHECK (condition) ]       [ , table_constraint_clause ]       ) [ INHERITS ( inherited_table [, ... ] ) ]
 

i don't understand what the curly brace means after PRIMARY KEY (where is 
the other matching brace? ). It must have something to do with the fact 
that a 'column type' pair ( with options ) can occur more than once, but is 
this syntax right?
i also don't understand what the [ ... ] and [, ... ] means. I do know that 
brackets denote options and | alternatives.

tx




В списке pgsql-sql по дате отправления:

Предыдущее
От: "Ligia Pimentel"
Дата:
Сообщение: Dateadd
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Dateadd