15.30 UPDATE_MEMBER Procedure
Updates the specified member in the given named collection.
If a collection does not exist with the specified name for the current user in the same session and for the current application ID, an application error occurs.
If the member specified by sequence ID p_seq
does not exist, an application error occurs.
Note:
Using this procedure sets the columns identified and nullifies any columns not identified. To update specific columns, without affecting the values of other columns, use UPDATE_MEMBER_ATTRIBUTE Procedure Signature 1.
Syntax
APEX_COLLECTION.UPDATE_MEMBER (
p_collection_name IN VARCHAR2,
p_seq IN VARCHAR2 DEFAULT NULL,
p_c001 IN VARCHAR2 DEFAULT NULL,
p_c002 IN VARCHAR2 DEFAULT NULL,
p_c003 IN VARCHAR2 DEFAULT NULL,
…
p_c050 IN VARCHAR DEFAULT NULL,
p_n001 IN NUMBER DEFAULT NULL,
p_n002 IN NUMBER DEFAULT NULL,
p_n003 IN NUMBER DEFAULT NULL,
p_n004 IN NUMBER DEFAULT NULL,
p_n005 IN NUMBER DEFAULT NULL,
p_d001 IN DATE DEFAULT NULL,
p_d002 IN DATE DEFAULT NULL,
p_d003 IN DATE DEFAULT NULL,
p_d004 IN DATE DEFAULT NULL,
p_d005 IN DATE DEFAULT NULL,
p_clob001 IN CLOB DEFAULT empty_clob(),
p_blob001 IN BLOB DEFAULT empty-blob(),
p_xmltype001 IN XMLTYPE DEFAULT NULL )
Parameters
Note:
Any character attribute exceeding 4,000 characters is truncated to 4,000 characters. Also, the number of members added is based on the number of elements in the first array.
Parameter | Description |
---|---|
p_collection_name |
The name of the collection to update. Maximum length is 255 bytes. Collection names are not case-sensitive and are converted to upper case. |
p_seq |
Identifies the sequence number of the collection member to be updated. |
p_c001 through p_c050 |
Attribute value of the member to be added. Maximum length is 4,000 bytes. Any character attribute exceeding 4,000 characters is truncated to 4,000 characters. |
p_n001 through p_n005 |
Attribute value of the numeric attributes to be added or updated. |
p_d001 through p_d005 |
Attribute value of the date attributes to be added or updated. |
p_clob001 |
Use p_clob001 for collection member attributes that exceed 4,000 characters.
|
p_blob001 |
Use p_blob001 for binary collection member attributes.
|
p_xmltype001 |
Use p_xmltype001 to store well-formed XML.
|
Example
This example updates the second member of the collection Departments
so that the first member attribute becomes Engineering
and the second member attribute becomes Sales
.
BEGIN
APEX_COLLECTION.UPDATE_MEMBER (
p_collection_name => 'Departments',
p_seq => '2',
p_c001 => 'Engineering',
p_c002 => 'Sales');
END;
Parent topic: APEX_COLLECTION