Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

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

$
0
0
Ok, if you want to pass a list of strings, you have to escape all strings: call test( '''US'',''GE''')or you pass 'US,GE' and add the quotes within your SP using SQL or simply use oReplace: '''' || OREPLACE('US,GR',',',''',''') ||'''' Depending on your definition of oReplace (resulting datatype) you may have to use: '''' || CAST(OREPLACE('US,GR',',',''',''') AS VARCHAR(10000)) ||'''' Dieter

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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