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.
.I also would like to tell you,here dest is C string like, char dest[20]={"'30','31','32'."}, which i am passing as order_type IN (:dest). – pri 19 secs ago edit