今天在用pdo处理oracle的查询时,遇到这个问题,全部使用的?作为占位符,然后给定的一个数组
生成的SQL语句如下:
update model_test set name=?,birth=to_date(?,'yyyy-mm-dd hh24:mi:ss'),sui=?,jianjie=? where (uuid='?')
关键问题就在这个where字句,用?作为占位符时,不能有引号。
今天在用pdo处理oracle的查询时,遇到这个问题,全部使用的?作为占位符,然后给定的一个数组生成的SQL语句如下:update model_test set name=?,birth=to_date(?,'yyyy-mm-dd hh24:mi:ss'),sui=?,jianjie=? where (uuid='?')关键问题就在这个where字句,用?作...
今天在用pdo处理oracle的查询时,遇到这个问题,全部使用的?作为占位符,然后给定的一个数组
生成的SQL语句如下:
update model_test set name=?,birth=to_date(?,'yyyy-mm-dd hh24:mi:ss'),sui=?,jianjie=? where (uuid='?')
评论
0成为第一个留下想法的人。