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