mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 07:30:40 +02:00
doc: Update serial explanation
The CREATE SEQUENCE command should include a data type specification, since PostgreSQL 10. Reported-by: mjf@pearson.co.uk
This commit is contained in:
parent
b291488da5
commit
f604aa956d
@ -861,7 +861,7 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (
|
|||||||
is equivalent to specifying:
|
is equivalent to specifying:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE SEQUENCE <replaceable class="parameter">tablename</replaceable>_<replaceable class="parameter">colname</replaceable>_seq;
|
CREATE SEQUENCE <replaceable class="parameter">tablename</replaceable>_<replaceable class="parameter">colname</replaceable>_seq AS integer;
|
||||||
CREATE TABLE <replaceable class="parameter">tablename</replaceable> (
|
CREATE TABLE <replaceable class="parameter">tablename</replaceable> (
|
||||||
<replaceable class="parameter">colname</replaceable> integer NOT NULL DEFAULT nextval('<replaceable class="parameter">tablename</replaceable>_<replaceable class="parameter">colname</replaceable>_seq')
|
<replaceable class="parameter">colname</replaceable> integer NOT NULL DEFAULT nextval('<replaceable class="parameter">tablename</replaceable>_<replaceable class="parameter">colname</replaceable>_seq')
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user