// group 分组操作,,,,,having()配合group使用,进行过滤
$data=M("admin")
->field("username,count(*) as total")
->having("username like '%x%'")
->group("username")
->select();
dump($data);
$data=M("admin")
->field("username,count(*) as total")
->having("username like '%x%'")
->group("username")
->select();
dump($data);
2015-05-13