1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-13 14:22:43 +03:00

Document that zero-column tables are allowed (and non-standard).

This commit is contained in:
Tom Lane
2002-12-16 19:08:25 +00:00
parent 5131e5ab7d
commit 9cecff0314
2 changed files with 21 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.52 2002/10/19 23:09:20 tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.53 2002/12/16 19:08:25 tgl Exp $
PostgreSQL documentation
-->
@@ -506,6 +506,12 @@ ALTER TABLE distributors ADD PRIMARY KEY (dist_id);
The clauses to rename tables, columns, indexes, and sequences are
<productname>PostgreSQL</productname> extensions from SQL92.
</para>
<para>
<command>ALTER TABLE DROP COLUMN</> can be used to drop the only column
of a table, leaving a zero-column table. This is an extension from SQL92,
which disallows zero-column tables.
</para>
</refsect2>
</refsect1>