php pdo中如何 在where in 查询中使用占位符 我尝试多种写法都没能成功

laravel 中查 where in 查询想使用占位符

$order -> cat_second_name = DB::select("select flmc nam from t_baoxiufenlei where ID in ?",['('1','2','3')']);
$order -> cat_second_name = DB::select("select flmc nam from t_baoxiufenlei where ID in (?)",["'1','2','3'"]);

最后一次尝试 是使用上面 的写法 已失败告终!

尝试了多种写法都不行!!!

代码是以 laravel

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题