where x in (array)

GNiessen

Member
I am looking to be able to do a select from a table using a "where ColA in (:A)', where A is a variable array.

Can you provide an example? I have tried a few things, but no success yet. And I would prefer not to dynamically create the SQL, but rather pass a parameter.

------------------
Gordon
 
You cannot use an array for this bind variable. You can only use a substitution variable and set its value to the corresponding expresssion:

DeclareVariable('A', otSubst);
SetVariable('A', '1,2,4,8');
...

------------------
Marco Kalter
Allround Automations
 
Back
Top