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