TP5查询某一列的值

浏览:16460 发布日期:2018/09/11 分类:技术分享

// 返回数组
Db::table('think_user')->where('status',1)->column('name');
// 指定索引
Db::table('think_user')->where('status',1)->column('name','id');
Db::table('think_user')->where('status',1)->column('id,name'); // 同tp3的getField
最佳答案
评论( 相关
后面还有条评论,点击查看>>