Specify element values
You can specify any of the following values as elements in a collection variable:
- A literal value
You can also specify literal values directly for a collection column without first using a collection variable. For more information, see Insert into and update a collection column.
- The host
variable
The host variable must contain a value whose data type is compatible with the element type of the collection.
You cannot include complex expressions directly to specify values.
For information about how to insert elements into a collection variable, see Insert elements into a collection variable. For information about how to update elements in a collection variable, see Update a collection variable. The following sections describe the values you can assign to an element in a collection variable.