码迷,mamicode.com
首页 > 其他好文 > 详细

tp5 查询单个字段的值

时间:2018-11-29 19:50:30      阅读:1180      评论:0      收藏:0      [点我收藏+]

标签:esc   pre   des   str   strong   col   color   使用   字段   

 

 

 

 

 

 

$num_lastday = Db::name(‘test_wx‘)
                        ->where(‘num‘,‘=‘,$data[‘num‘])
                        ->order(‘time desc‘)
                        ->limit(1,1)
                        ->value(‘fans_today‘);

 

 

使用  ->value(‘ 要查的字段 ‘);

 

tp5 查询单个字段的值

标签:esc   pre   des   str   strong   col   color   使用   字段   

原文地址:https://www.cnblogs.com/Skate0rDie/p/10039931.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!