-
+
Arrays
Arrays of domains are not yet supported.
-
+ id="arrays-declaration">
Declaration of Array Types
+
+ declaration
+
+
To illustrate the use of array types, we create this table:
-
+ id="arrays-input">
Array Value Input
-
+ id="arrays-accessing">
Accessing Arrays
+
+ accessing
+
+
Now, we can run some queries on the table.
First, we show how to access a single element of an array at a time.
-
+ id="arrays-modifying">
Modifying Arrays
+
+ modifying
+
+
An array value can be replaced completely:
-
+ id="arrays-searching">
Searching in Arrays
+
+ searching
+
+
To search for a value in an array, you must check each value of the
array. This can be done by hand, if you know the size of the array.
-
+ id="arrays-io">
Array Input and Output Syntax
+
+ I/O
+
+
The external text representation of an array value consists of items that
are interpreted according to the I/O conversion rules for the array's