按orders_id找到表中该字段不重复的记录,列出所有 select *,count(distinct orders_id) from orders_detail group by orders_id;