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 » Making DB Query with arrays

Post new topic  Reply to topic
 Making DB Query with arrays « View previous topic :: View next topic » 
Author Message
Mandrake90
PostPosted: Mon Oct 26, 2020 4:27 am    Post subject: Making DB Query with arrays Reply with quote

Novice

Joined: 11 Feb 2020
Posts: 10

Hi All,

I have a LOV in my esql code, named Environment.ListofIDs[]

How can I put it into a WHERE condition whithin a DB query?
Like this

qryRes= SELECT COUNT(*) where Database.DBTTABLE as DBT where DBT.ID in (Environment.ListofIDs[])

Have I to write a cycle on the array to make several queries and then sum the results?

thanks!!
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Oct 26, 2020 5:16 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

You might be better off posting this question in a DB forum - MQ is not a DB.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Mandrake90
PostPosted: Mon Oct 26, 2020 8:35 am    Post subject: Reply with quote

Novice

Joined: 11 Feb 2020
Posts: 10

thanks but in SQL the query works because it is quite simple.
SELECT COUNT(*) FROMT DBTABLE where ID in (1,2,3,4,5)

the issue is on Esql because I cannot put my array in the WHERE condition


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 » Making DB Query with arrays
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.