Guest
Welcome login


TIBCOmmunity > Products > ActiveMatrix SOA > BusinessWorks > Conversations
Home   Members Communities
Conversations () Resources () Blogs ()

BusinessWorks

Up to Conversations in BusinessWorks

This Question is Answered

2 "helpful" answers available (2 pts)

JDBC Query : In clause

Created on: Feb 9, 2010 4:15 AM

Hello,

 

I would like to know if someone as ever used an "in clause" containning at least two values in a JDBC Query activity (but the real number of value is dynamic).

I know work around exists (like using a SQL Direct acitivy after).

But I may have miss something. Maybe one of the datatype of the input parameter allow this ?

 

Best regards,

Mathieu

Click to view Yeshodhan Kulkarni's profile Hotshot 166 posts since
May 21, 2009
1. Feb 9, 2010 4:31 AM in response to: mathieu
Re: JDBC Query : In clause

Could you please post a sample query you wish to execute?

 

Regards ~ Yeshodhan Kulkarni

Click to view Nirav Dave's profile Enthusiast 105 posts since
Apr 10, 2009
3. Feb 16, 2010 1:52 PM in response to: mathieu
Re: JDBC Query : In clause

No this is not possible with JDBC Query palette.

This palette supports upto 1 dynamic input for IN caluse.

 

So if you have more than 1 value to pass in IN clause, then use SQL direct palette.

Click to view Tirumal Anugu's profile Dabbler 5 posts since
Nov 13, 2009
5. Feb 17, 2010 11:32 PM in response to: mathieu
Re: JDBC Query : In clause

Hi Matieu,

 

you can do this with JDBC Query activity

 

try the below query .....

 

SELECT tst.TEST_ID

FROM APP_TEST tst

WHERE tst.TEST_CODE in ('select code from Table_A)

 

Thank

Tirumal



More Like This

  • Retrieving data ...