|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.58 2007/02/20 14:54:47 momjian Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.59 2007/03/02 06:01:01 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <sect1 id="arrays"> |
4 | 4 | <title>Arrays</title> |
@@ -243,12 +243,11 @@ SELECT schedule[1:2][1:1] FROM sal_emp WHERE name = 'Bill'; |
243 | 243 | (1 row) |
244 | 244 | </programlisting> |
245 | 245 |
|
246 | | - If any dimension is written as a slice, i.e contains a colon, then all |
247 | | - dimensions are treated as slices. If a dimension is missing, it is |
248 | | - assumed to be <literal>[1:1]</>. If a dimension has only a single |
249 | | - number (no colon), that dimension is treated as being from <literal>1</> |
| 246 | + If any dimension is written as a slice, i.e. contains a colon, then all |
| 247 | + dimensions are treated as slices. Any dimension that has only a single |
| 248 | + number (no colon) is treated as being from <literal>1</> |
250 | 249 | to the number specified. For example, <literal>[2]</> is treated as |
251 | | - <literal>[1:2], as in this example: |
| 250 | + <literal>[1:2]</>, as in this example: |
252 | 251 |
|
253 | 252 | <programlisting> |
254 | 253 | SELECT schedule[1:2][2] FROM sal_emp WHERE name = 'Bill'; |
|