pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: LeoDeBeo <leodebeo@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: create table
Date: Sun, 29 Apr 2001 21:34:29 +0200
Message-ID: <9chqd9$21vm$2@news.tht.net> (raw)

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





view thread (17+ messages)  latest in thread

Message-ID: <9chqd9$21vm$2@news.tht.net>
Permalink:  ../9chqd9$21vm$2@news.tht.net/
Also on:    postgresql.org/message-id/9chqd9$21vm$2@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: leodebeo@hotmail.com
  Subject: Re: create table
  In-Reply-To: <9chqd9$21vm$2@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox