Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3TJuD313144 for ; Sun, 29 Apr 2001 15:56:13 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f3TJWq267577 for pgsql-docs@postgresql.org; Sun, 29 Apr 2001 15:32:52 -0400 (EDT) (envelope-from news) From: LeoDeBeo X-Newsgroups: comp.databases.postgresql.docs Subject: create table Date: Sun, 29 Apr 2001 21:32:15 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 20 Message-ID: <9chq93$21vm$1@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: scrappy@hub.org User-Agent: KNode/0.4 To: pgsql-docs@postgresql.org X-Archive-Number: 200104/91 X-Sequence-Number: 663 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