mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Since SQL:2003, the array size specification in the SQL ARRAY syntax has
been optional.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.66 2008/04/28 14:48:57 alvherre Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.67 2008/10/29 11:24:52 petere Exp $ -->
|
||||
|
||||
<sect1 id="arrays">
|
||||
<title>Arrays</title>
|
||||
@ -76,9 +76,12 @@ CREATE TABLE tictactoe (
|
||||
<programlisting>
|
||||
pay_by_quarter integer ARRAY[4],
|
||||
</programlisting>
|
||||
This syntax requires an integer constant to denote the array size.
|
||||
Or, if no array size is to be specified:
|
||||
<programlisting>
|
||||
pay_by_quarter integer ARRAY,
|
||||
</programlisting>
|
||||
As before, however, <productname>PostgreSQL</> does not enforce the
|
||||
size restriction.
|
||||
size restriction in any case.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
|
Reference in New Issue
Block a user