Oracle在存储过程里面加单引号
我想在存储过程里面查一个语句
传进的参数是不带单引号的。怎么加啊
select * from table where REPORT_MONTHLY in ('2008-05','2008-04','2008-06')
但是在传进去参数的时候是不带单引号的。
在存储过程里面怎么加上单引号啊
[解决办法]
我的异常网推荐解决方案:oracle存储过程,http://www.myexception.cn/oracle-develop/177537.html
[解决办法]
再说下,多个变量用逗号隔开
select * from table where report_monthly in (' ¦ ¦thedate ¦ ¦','||secdate||','||thirddate||');