说明
运行原生SQL查询
示例
Db::query('select * from think_user where id=?',[8]);
占位符
Db::query('select * from think_user where id=:id',['id'=>8]);
说明
运行原生SQL查询
示例
Db::query('select * from think_user where id=?',[8]);
占位符
Db::query('select * from think_user where id=:id',['id'=>8]);
下一篇:thinkphp-execute
thinkphp-使用Query对象
Queryearch.cn/g
ThinkPHP是一个开源的PHP框架,是为了简化企业级应用开发和敏捷WEB应用开发而诞生
想要在查询时加入 查询的字段,需要用到 query(*****),query、query() 二种不通的用法 前提:db、class TableName 都已配置
Siddhi文档翻译 Query Guide
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M