第1个回答 2019-05-29
用order或者join试试
$user_info=$this->table('voucher,member')->join('inner')->on($on)->where($where)->page(11)->order('voucher_start_date desc,member_id asc')->select();
第2个回答 2019-05-29
select a.* ,b.* from A a,B b where (a.name= and a.num=) or (b.name= and b.num=)本回答被提问者采纳
第3个回答 2019-05-29
select distinct 品牌 from 表名
或者
select 品牌 from 表名 group by 品牌