Hi,
I’ve created a Dynamic SQL Adapter with a bunch of Joins and an “IN” Clause.
The query runs well in TOAD and SQL Developer returning a row for each value specified for column 2 (IN Clause)
SELECT (bunch of columns)
FROM (bunch of tables)
WHERE (quite a few join statements)
AND column1 = ?
AND column2 IN (?)
This query runs well, in the adapter, for only 1 value specified for the second variable (column2 - IN Clause) , but, when I try more than one value it returns zero rows.
I’ve tried enclosing each separate value for the second variable in:
no quotes-comma separated: 2739,2740,4096
no quotes-space separated: 2739 2740 4096
no quotes-comma and space separated: 2739, 2740, 4096
single quotes-comma separated: ‘2739’,‘2740’,‘4096’
single quotes-space separated: ‘2739’ ‘2740’ ‘4096’
single quotes-comma and space separated: ‘2739’, ‘2740’, ‘4096’
double quotes: “2739”, “2740”, “4096”
But none of these work and return any rows at all.
Can anyone help me with the format/syntax of the value to pass to the adapter for the second variable (IN Clause) ??
Cheers,
David
#Adapters-and-E-Standards#webMethods#Integration-Server-and-ESB