ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Database SQL issue

Post new topic  Reply to topic
 Database SQL issue « View previous topic :: View next topic » 
Author Message
nab054371
PostPosted: Wed Jan 03, 2007 12:50 pm    Post subject: Database SQL issue Reply with quote

Disciple

Joined: 15 Nov 2006
Posts: 173

SQL Statement:

SET OutputRoot.XML.test = THE(SELECT T.* FROM Database.USER_TBL AS T);

Table USER_TBL has 3 columns and 50 rows. However my output message looks <test/>


I would have expected it to spit out three columns from the table inside of <test></test> ?
Back to top
View user's profile Send private message
pathipati
PostPosted: Wed Jan 03, 2007 5:35 pm    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Your query is wrong..
Back to top
View user's profile Send private message Yahoo Messenger
nab054371
PostPosted: Wed Jan 03, 2007 8:03 pm    Post subject: Reply with quote

Disciple

Joined: 15 Nov 2006
Posts: 173

And why is that?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Jan 03, 2007 9:54 pm    Post subject: Re: Database SQL issue Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi nab054371,

nab054371 wrote:
SET OutputRoot.XML.test = THE(SELECT T.* FROM Database.USER_TBL AS T);
THE SELECT ITEM

This would ofcourse picked the first...hope thats what u want too.

Regards.
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Thu Jan 04, 2007 1:09 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Try giving the column names in select

i.e.

SET OutputRoot.XML.test = THE(SELECT T.a, T.b, T.c FROM Database.USER_TBL AS T);

It should work.
Back to top
View user's profile Send private message Visit poster's website
nab054371
PostPosted: Thu Jan 04, 2007 5:20 am    Post subject: Reply with quote

Disciple

Joined: 15 Nov 2006
Posts: 173

I know that works,I am testing T.* as specified in MQ Manuals
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Database SQL issue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.