I want to ask how to pass the '30','31','32' to SQL WHERE IN clause For example
EXEC SQL DECLARE abcd CURSOR FOR SELECT Consignment FROM Transaction WHERE order_type IN (:dest)
where dest will hold the value '30','31','32'.
I have tried as above example but it is not working SQL did not return any result.
There is no easy way.split the data on seperator(,), insert into a table in a while loop. Then "IN (select "column_name" from temp table)". Now split and insert into a temp table is a tricky thing.