0
点赞
收藏
分享

微信扫一扫

tp5知识点

小_北_爸 2022-08-29 阅读 90

//闭包查询
Db::table('think_user')->select(function($query){

$query->where('name','thinkphp')
->whereOr('id','>',10)
});

生成的sql语句为:
select * from 'think_useer' where 'name' = 'thinkphp' OR 'id' >10

 

__STATIC__/admin/img/1.jpg
代表的是文件在public/static/admin/img/1.jpg
<img src="/static/admin/img/2.jpg" style="width:100%;height:450px" alt="...">

世界上最美的风景,是自己努力的模样



举报

相关推荐

0 条评论