Skip to content
Snippets Groups Projects
Commit 50acd427 authored by Tom Lane's avatar Tom Lane
Browse files

Fix broken markup, improve wording.

parent fb276438
No related branches found
No related tags found
No related merge requests found
<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.58 2007/02/20 14:54:47 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.59 2007/03/02 06:01:01 tgl Exp $ -->
<sect1 id="arrays"> <sect1 id="arrays">
<title>Arrays</title> <title>Arrays</title>
...@@ -243,12 +243,11 @@ SELECT schedule[1:2][1:1] FROM sal_emp WHERE name = 'Bill'; ...@@ -243,12 +243,11 @@ SELECT schedule[1:2][1:1] FROM sal_emp WHERE name = 'Bill';
(1 row) (1 row)
</programlisting> </programlisting>
If any dimension is written as a slice, i.e contains a colon, then all If any dimension is written as a slice, i.e. contains a colon, then all
dimensions are treated as slices. If a dimension is missing, it is dimensions are treated as slices. Any dimension that has only a single
assumed to be <literal>[1:1]</>. If a dimension has only a single number (no colon) is treated as being from <literal>1</>
number (no colon), that dimension is treated as being from <literal>1</>
to the number specified. For example, <literal>[2]</> is treated as to the number specified. For example, <literal>[2]</> is treated as
<literal>[1:2], as in this example: <literal>[1:2]</>, as in this example:
<programlisting> <programlisting>
SELECT schedule[1:2][2] FROM sal_emp WHERE name = 'Bill'; SELECT schedule[1:2][2] FROM sal_emp WHERE name = 'Bill';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment