说明
运行原生SQL查询
示例
Db::query(‘select * from think_user where id=?‘,[8]);
占位符
Db::query(‘select * from think_user where id=:id‘,[‘id‘=>8]);
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1896637
原文地址:http://suyanzhu.blog.51cto.com/8050189/1896637