mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03: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:
@ -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')
|
||||
);
|
||||
|
Reference in New Issue
Block a user