oracle中单引号的转义符 ?我需要一个sql语句,定义一个变量str
str:='select * from tablename where time>=to_date('2005-1-1','yyyy-mm-dd')';
这个to_date()中需要单引号,可是这样写的话又出错,该怎么解决阿?!!
------解决方法--------------------------------------------------------
"'"用chr(39)进行拼接
发布时间: 2014-01-28 21:27:26 作者: rapoo
oracle中单引号的转义符 ?我需要一个sql语句,定义一个变量str
str:='select * from tablename where time>=to_date('2005-1-1','yyyy-mm-dd')';
这个to_date()中需要单引号,可是这样写的话又出错,该怎么解决阿?!!
------解决方法--------------------------------------------------------
"'"用chr(39)进行拼接