Declaration of multiple values in Oracle BIND Variables

后端 未结 6 1919
庸人自扰
庸人自扰 2021-01-14 11:49

I am trying to pass multiple values about 3000 values, to a BIND variable in Oracle SQL PLUS command prompt like..

SELECT JOB
  FROM EMP 
 WHERE JOB IN :JOB          


        
6条回答
  •  无人及你
    2021-01-14 12:21

    While facing similar problem, I came up with this dirty solution:

    select * from my_table where ',param_1,param_2,param_3,param_4,' LIKE '%,'||my_column||',%'
    

提交回复
热议问题