Example 1: 3
3begin; 3EXECUTE FUNCTION MQReceiveClob(); 3commit;3
Alternatively, the following syntax can be used: 3
3insert into my_order_table(clob_col) VALUES(MQReceiveClob());3
This example receives the content of the message as a CLOB at 3the head of the queue into the CLOB with the following parameters: 3
3Example 2: 3
3begin; 3EXECUTE FUNCTION MQReceiveClob('MYSERVICE'); 3rollback;3
Alternatively, the following syntax can be used: 3
3insert into my_order_table(clob_col)
3 VALUES(MQReceiveClob('MYSERVICE'));
3This example receives the content of the message as a CLOB at 3the head of the queue into the CLOB with the following parameters: 3
3Example 3: 3
3begin; 3EXECUTE FUNCTION MQReceiveClob('MYSERVICE', 'MYPOLICY'); 3commit;3
Alternatively, the following syntax can be used: 3
3insert into my_order_table(clob_col)
3 VALUES(MQReceiveClob('MYSERVICE', 'MYPOLICY'));
3This example receives the content of the message as a CLOB at 3the head of the queue into the CLOB with the following parameters: 3
3Example 4: 3
3begin; 3EXECUTE FUNCTION MQReceiveClob('MYSERVICE', 'MYPOLICY', 'TESTS'); 3commit;3
Alternatively, the following syntax can be used: 3
3insert into my_order_table(clob_col)
3 VALUES(MQReceiveClob('MYSERVICE', 'MYPOLICY', 'TESTS'));
3This example receives the content of the message as a CLOB at 3the head of the queue into the CLOB with the following parameters: 3
3