webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

JDBC Adapter SQL Statement Problem

  • 1.  JDBC Adapter SQL Statement Problem

    Posted Wed August 11, 2004 05:29 AM

    Hi,
    I tried to use the customSQL in JDBC Adapter as below:

    SELECT CUST_ID FROM CUSTOMER WHERE CUST_ID IN (?)

    Input: CUST_ID = ‘0000600010’, ‘0000600011’

    There was no result return from the query.

    I suspect JDBC adapter not accept IN statement.

    Please help.

    Thanks a lot.

    Regards
    Cliff Seow


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: JDBC Adapter SQL Statement Problem

    Posted Wed August 11, 2004 06:18 AM

    Clif,

    As far i know using JDBC Adapter CustomSQL it does not accept IN statement.

    So instead use the JDBC Adapter DynamicSQL for accomplishing this.

    Refrace your SQL statement like this in the Dynamic SQL tab:

    SELECT CUST_ID FROM CUSTOMER WHERE CUST_ID IN (${CUST_ID})

    Now test with your Input: CUST_ID = 0000600010, 0000600011

    you will see the results set Output:Cust_Id

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards