可以在select 的时候指定字段:select pr.cpbh....from pro_sal pr inner join pros p on pr.cpbh=p.cpbhwhere pr.xse>5000group by cpmc;
更多关于多表关联的操作可以参考:mysql join语法 http://www.data.5helpyou.com/article209.html
select distinct * from 表