|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.454 2008/11/0400:59:45 momjian Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.455 2008/11/0414:49:11 petere Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
@@ -9373,6 +9373,17 @@ SELECT NULLIF(value, '(none)') ...
|
9373 | 9373 | <entry><literal>array_cat(ARRAY[1,2,3], ARRAY[4,5])</literal></entry>
|
9374 | 9374 | <entry><literal>{1,2,3,4,5}</literal></entry>
|
9375 | 9375 | </row>
|
| 9376 | + <row> |
| 9377 | + <entry> |
| 9378 | + <literal> |
| 9379 | + <function>array_ndims</function>(<type>anyarray</type>) |
| 9380 | + </literal> |
| 9381 | + </entry> |
| 9382 | + <entry><type>int</type></entry> |
| 9383 | + <entry>returns the number of dimensions of the array</entry> |
| 9384 | + <entry><literal>array_ndims(ARRAY[[1,2,3], [4,5,6]])</literal></entry> |
| 9385 | + <entry><literal>2</literal></entry> |
| 9386 | + </row> |
9376 | 9387 | <row>
|
9377 | 9388 | <entry>
|
9378 | 9389 | <literal>
|
|