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

One or more values to pass in a prompt - response (3) by dnoeth

$
0
0

When you're  on TD14 you might simply use the strtok_split_to_table function:

WHERE P_ID IN
 (
   SELECT CAST(token as INT) 
   FROM TABLE (STRTOK_SPLIT_TO_TABLE(1, #sq(prompt(''))#, ',')
        RETURNS (outkey INTEGER,
                 tokennum INTEGER,
                 token VARCHAR(20) CHARACTER SET UNICODE)
              ) AS d 
) 

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>