日期:2014-05-17  浏览次数:21325 次

Oracle在存储过程里面加单引号
我想在存储过程里面查一个语句
传进的参数是不带单引号的。怎么加啊

select * from table where REPORT_MONTHLY in ('2008-05','2008-04','2008-06')
但是在传进去参数的时候是不带单引号的。
在存储过程里面怎么加上单引号啊

------解决方案--------------------
我的异常网推荐解决方案:oracle存储过程,http://www.aiyiweb.com/oracle-develop/177537.html
------解决方案--------------------
再说下,多个变量用逗号隔开
select * from table where report_monthly in (' ¦ ¦thedate ¦ ¦','||secdate||','||thirddate||');