Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

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

$
0
0
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 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>