Archives of the TeradataForum
Message Posted: Fri, 18 Jan 2013 @ 09:44:49 GMT
What I've done in this situation is to create another Stored Procedure which will split the values out into ROWS.
My SP is called COLS_FROM_STRING :
This Procedure then loops through the string and, for each entry in the list, writes the value to a Temporary Table.
In the invoking SP, first of all I call COLS_FROM_STRING with the IN lists, and then use the generated Temporary Table in place of the IN list.
I won't provide the code for COLS_FROM_STRING, because then it would deprive you (Anonymous) of the pleasure of coding your own !
|Copyright 2016 - All Rights Reserved|
|Last Modified: 24 Jul 2020|