摘要:
mysql使用Limit分页不加索引列会导致数据丢失、重复和索引失效 mysql官网对limit的详细说明及优化建议:https://dev.mysql.com/doc/refman/5.7/en/limit-optimization.html 官网 If multiple rows have id 阅读全文
摘要:
查询重复领取的优惠券 //查询8888888用户优惠券状态为未使用且数量大于2的用户领取过的优惠券 SELECT discount_coupon_id,count(discount_coupon_id) as c FROM `faith_user_discount_coupon` where use 阅读全文