thinkphp5获取某个字段或者某个列的值 xiaoming 2023-01-19 148 0 // 获取某个用户的积分 User::where(id,10)->value(score); // 获取某个列的所有值 User::where(status,1)->column(name); // 以id为索引 User::where(status,1)->column(name,id);