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 » Help about SELECT query in ESQL

Post new topic  Reply to topic
 Help about SELECT query in ESQL « View previous topic :: View next topic » 
Author Message
harisomayaji
PostPosted: Wed Mar 26, 2008 9:42 pm    Post subject: Help about SELECT query in ESQL Reply with quote

Newbie

Joined: 19 Mar 2007
Posts: 2

Hi,

I m new to WMB. In my application i want to write a query to select some fields from database. After selecting those variables i have to assign that fields to some variables, how can i achieve this.


EX :

DECLARE str1 CHARACTER;
DECLARE str2 CHARACTER;

Query : SELECT B FROM Database.SAMPLE_TABLE AS B WHERE B.APPNO = 'APPNO'

Now how can i retrieve the element from query and assighn it to the variables str1 and str2

Thanks in advance,

Hari
Back to top
View user's profile Send private message Yahoo Messenger
Gaya3
PostPosted: Wed Mar 26, 2008 10:04 pm    Post subject: Re: Help about SELECT query in ESQL Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

harisomayaji wrote:
I m new to WMB.


Most Welcome....my suggestion is please go for a training/go through the PDF's first...dont be blank in front of WBIMB (its too vast).

harisomayaji wrote:
In my application i want to write a query to select some fields from database. After selecting those variables i have to assign that fields to some variables, how can i achieve this.

EX :

DECLARE str1 CHARACTER;
DECLARE str2 CHARACTER;

Query : SELECT B FROM Database.SAMPLE_TABLE AS B WHERE B.APPNO = 'APPNO'


Clue
Set <Variable> = Select Query;

If you still sounds this as tough...tougher and toughest.
Open your toolkit and surf, read, and practice (CTRL + TAB) through the below link

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac30240_.htm

Go ahead, We are here to make easy ...easier and easiest


Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Mar 26, 2008 10:19 pm    Post subject: Re: Help about SELECT query in ESQL Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

harisomayaji wrote:

EX :

DECLARE str1 CHARACTER;
DECLARE str2 CHARACTER;

Query : SELECT B FROM Database.SAMPLE_TABLE AS B WHERE B.APPNO = 'APPNO'

Now how can i retrieve the element from query and assighn it to the variables str1 and str2



If you want to retrive 2 variables from database, a single assignment wont work..

You need to first create an environment tree element and fetch the data from database to that.... and then u can assign respective values to the variables.....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Help about SELECT query in ESQL
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.