子查询自动转义,怎么解决

浏览:478 发布日期:2013/05/16 分类:求助交流
$condition['kemuid'] = array('in',"SELECT id FROM p_kemu where path like %'".$kemuid."'%");
生成的sql自动增加\'
SELECT * FROM `p_ysbz` WHERE ( ( `kemuid` IN ('SELECT id FROM p_kemu where path like %\'2\'%') ) ORDER BY `id` asc LIMIT 0,20
最佳答案
评论( 相关
后面还有条评论,点击查看>>