Home | Previous Page | Next Page   MQ DataBlade Module > MQ DataBlade Tables > Working with Tables > 3 3 3

Using INSERT and SELECT

3

After a table is bound to a queue, 3use INSERT to insert items into the WMQ queue, and SELECT to retrieve 3WMQ messages.

3

Using the example with table vtimq above, 3the following example inserts a message into the msg column 3of VtiMQ and into the queue described by IDS.DEFAULT.SERVICE 3service and policy IDS.DEFAULT.POLICY:

3

3
INSERT into VtiMQ (msg) values ('PUT on queue with SQL INSERT');
31 row(s) inserted.
3

Use a SELECT statement to display the message:

3

3
SELECT * from VtiMQ;
3msg        PUT on queue with SQL INSERT
3correlid
3topic
3qname      IDS.DEFAULT.QUEUE
3msgid      AMQ
3msgformat  MQSTR
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]