0

是否可以从 C003 = 31 的顶点集合中删除

在此处输入图像描述

4

1 回答 1

3

DELETE_MEMBERS 过程就是您要寻找的。要了解更多信息,请查看官方Oracle 文档

您可以执行以下操作:

APEX_COLLECTION.DELETE_MEMBERS 
(
    p_collection_name => 'collection_name',
    p_attr_number     => 3,
    p_attr_value      => '31'
);

或使用序列 ID。

DECLARE

    CURSOR c_temp IS
    SELECT
        seq_id
    FROM APEX_COLLECTIONS
    WHERE collection_name = 'collection_name'
        AND c003 = '31';

BEGIN
    FOR r_temp IN c_temp LOOP
        apex_collection.delete_member
        (
            p_collection_name => 'collection_name',
            p_seq => r_temp.seq_id
        );
    END LOOP;
END;


于 2021-08-11T09:59:08.190 回答