赞
踩
select inquiry_id inquiryId,COUNT(inquiry_id) quantity, create_time from (select * from i_inquiry_details WHERE read_status = 1 having 1 ORDER BY create_time desc) a GROUP BY a.inquiry_id ORDER BY a.create_time DESC
select inquiry_id inquiryId,COUNT(inquiry_id) quantity, create_time from (select * from i_inquiry_details WHERE read_status = 1 having 1 ORDER BY create_time asc) a GROUP BY a.inquiry_id ORDER BY a.create_time asc
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。