mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-16 08:31:09 +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:
|
||||
|
||||
<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> (
|
||||
<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