Quantcast
Viewing all articles
Browse latest Browse all 27759

How to parametrize WHERE IN clause in stored procedure? - response (1) by dnoeth

A parameter is a single value, not a list of values. You need a dynamic SQL string: SET QUERY = 'SELECT * FROM SOME_TABLE WHERE country_cd IN ('|| varlist || ');'; PREPARE S1 FROM QUERY; OPEN C1 ;Dieter  

Viewing all articles
Browse latest Browse all 27759

Trending Articles