说明
运行原生SQL查询
示例
Db::query('select * from think_user where id=?',[8]);
占位符
Db::query('select * from think_user where id=:id',['id'=>8]);
本文共 179 字,大约阅读时间需要 1 分钟。
说明
运行原生SQL查询
示例
Db::query('select * from think_user where id=?',[8]);
占位符
Db::query('select * from think_user where id=:id',['id'=>8]);
转载于:https://blog.51cto.com/suyanzhu/1896637