MySQL語句中distinct 問題記錄:

測試過程中遇到一個問題,產品要求是把 pack_code去重按照 created倒序排序,讓接口返回,開發提供的SQL是:select DISTINCT(pack_code) from eq_coupon_pack where member_id = '607c62f1e16a4342b0a8c431103d750b' order by created desc; 我自己寫出的SQL是: sele
相關文章
相關標籤/搜索