|Oracle Call Interface Programmer's Guide
Part Number A89857-01
OCI Datatype Mapping and Manipulation Functions, 4 of 135
Assigns the given element value
elem to the element at
sword OCICollAssignElem ( OCIEnv *env, OCIError *err, sb4 index, CONST dvoid *elem, CONST dvoid *elemind, OCIColl *coll );
The OCI environment handle initialized in object mode.
The OCI error handle. If there is an error, it is recorded in
err and this function returns OCI_ERROR. Obtain diagnostic information by calling
Index of the element whose is assigned to.
Element which is assigned from (source element).
Pointer to the element's null indicator information; if (
NULL) then the null indicator information of the assigned element will be set to non-null.
Collection to be updated.
If the collection is of type nested table, the element at the given index may not exist, as in the case when an element has been deleted. In this case, the given element is inserted at
index. Otherwise, the element at
index is updated with the value of
Note that the given element is deep-copied and
elem is strictly an input parameter.
This function returns an error if any input parameter is null or if the given index is beyond the bounds of the given collection.