Thursday, 15 January 2015

sql - Do a IN in stored procedure with variable -



sql - Do a IN in stored procedure with variable -

i'm developing stored procedure , i'm stuck in step. in point have this:

stmt := stmt || ' , risk.code in (:4) ';

how can create risk.code in when :4 text variable contains list of values "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20"

found it,

stmt := stmt || ' , risk.code in ('|| p_risk ||') ';

sql oracle

No comments:

Post a Comment