CREATE TABLE synopsis
CREATE TABLE synopsis
От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
The CREATE TABLE synopsis shows this:
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( { column_name data_type [ DEFAULT default_expr ] [ column_constraint [ ... ] ] | table_constraint | LIKE parent_table [ { INCLUDING | EXCLUDING } DEFAULTS ] } [, ... ]
)
However, we now allow zero-column tables, so it should actually be
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( [ column_name data_type [ DEFAULT default_expr ] [ column_constraint [ ... ] ] | table_constraint | LIKE parent_table [ { INCLUDING | EXCLUDING } DEFAULTS ] ] [, ... ]
)
Right?
--
Alvaro Herrera ()
Re: CREATE TABLE synopsis
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Right, fixed in create_table.sgml. I don't think it is any other place.
---------------------------------------------------------------------------
Alvaro Herrera wrote:
> The CREATE TABLE synopsis shows this:
>
> CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name (
> { column_name data_type [ DEFAULT default_expr ] [ column_constraint [ ... ] ]
> | table_constraint
> | LIKE parent_table [ { INCLUDING | EXCLUDING } DEFAULTS ] } [, ... ]
> )
>
> However, we now allow zero-column tables, so it should actually be
>
> CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name (
> [ column_name data_type [ DEFAULT default_expr ] [ column_constraint [ ... ] ]
> | table_constraint
> | LIKE parent_table [ { INCLUDING | EXCLUDING } DEFAULTS ] ] [, ... ]
> )
>
> Right?
>
> --
> Alvaro Herrera ()
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073