![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... Oracle is being picky here...... |
#3
| |||
| |||
|
|
Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... Oracle is being picky here...... |
#4
| |||
| |||
|
|
On Feb 17, 1:47*pm, Mtek <m... (AT) mtekusa (DOT) com> wrote: Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... Oracle is being picky here...... You might want to read here: http://oratips-ddf.blogspot.com/2008...w-dynamic.html David Fitzjarrell |
#5
| |||
| |||
|
|
On Feb 17, 2:05*pm, ddf <orat... (AT) msn (DOT) com> wrote: On Feb 17, 1:47*pm, Mtek <m... (AT) mtekusa (DOT) com> wrote: Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... Oracle is being picky here...... You might want to read here: http://oratips-ddf.blogspot.com/2008...w-dynamic.html David Fitzjarrell Crap that is a lot of work to do this simple task....- Hide quoted text - - Show quoted text - |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... |
|
Oracle is being picky here...... |
#8
| |||
| |||
|
|
On Feb 17, 7:47*pm, Mtek <m... (AT) mtekusa (DOT) com> wrote: Sheesh, how hard can this be: * * *IF p_code IN v_code_list THEN * * * * v_query := v_query || ' AND p_code IN v_code_list'; * * *END IF; Does not like that. *The IN list will be dynamic....... Try using collections and the MEMBER OF operator.http://www.williamrobertson.net/docu...separated.html Oracle is being picky here...... Is there any programming language in which a comma-separated string works the way you just made up? |
![]() |
| Thread Tools | |
| Display Modes | |
| |