tp5知识点

//闭包查询
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="...">
posted @ 2019-11-11 15:31  大熊童鞋  阅读(188)  评论(0编辑  收藏  举报