Db::execute 不支持 lock table 问题

浏览:492 发布日期:2018/05/28 分类:ThinkPHP5专区 关键字: execute
thinkphp5.1采用了 prepare 的模式来执行原生sql
我要执行 lock table 操作
而prepare 不支持 lock table
请问这种问题应该怎么解决?

执行lock table 出现错误提示:
SQLSTATE[HY000]: General error: 2030 This command is not supported in the prepared statement protocol yet
最佳答案
评论( 相关
后面还有条评论,点击查看>>