PURGE_QUEUE_TABLE¶
Use the PURGE_QUEUE_TABLE procedure to delete messages from a queue table. The signature is:
PURGE_QUEUE_TABLE(
<queue_table> IN VARCHAR2,
<purge_condition> IN VARCHAR2,
<purge_options> IN aq$_purge_options_t)
Parameters
queue_table
queue_tablespecifies the name of the queue table from which you are deleting a message.
purge_condition
Use
purge_conditionto specify a condition (a SQLWHEREclause) that the server will evaluate when deciding which messages to purge.
purge_options
purge_optionsis an object of the typeaq$_purge_options_t. Anaq$_purge_options_tobject contains:
Attribute |
Type |
Description |
|---|---|---|
|
Boolean |
Specify |
|
INTEGER |
|
Example
The following anonymous block removes any messages from the work_order_table with a value in the completed column of YES:
DECLARE
purge_options dbms_aqadm.aq$_purge_options_t;
BEGIN
dbms_aqadm.purge_queue_table('work_order_table', 'completed = YES',
purge_options);
END;