已赞助:1米币 帐号余额:24米币
谢谢您的赞助!
字段去重复:
$test_data = M('teacher'); //实例化数据表
//用distinct去重
$data = $test_data->Distinct(true)->field('descriprion')->order('description desc')->select();
//用group去重
$data = $test_data->group('description')->order('description desc')->select();
编辑回复