mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Doc: fix minor bug in CREATE TABLE example.
One example in create_table.sgml claimed to be showing table constraint syntax, but it was really column constraint syntax due to the omission of a comma. This is both wrong and confusing, so fix it in all supported branches. Per report from neil@postgrescompare.com. Discussion: https://postgr.es/m/151871659877.1393.2431103178451978795@wrigleys.postgresql.org
This commit is contained in:
parent
bd87186378
commit
1bb87c0fae
@ -1187,7 +1187,7 @@ CREATE TABLE distributors (
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE TABLE distributors (
|
CREATE TABLE distributors (
|
||||||
did integer,
|
did integer,
|
||||||
name varchar(40)
|
name varchar(40),
|
||||||
CONSTRAINT con1 CHECK (did > 100 AND name <> '')
|
CONSTRAINT con1 CHECK (did > 100 AND name <> '')
|
||||||
);
|
);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user