mysql 拼接

SELECT GROUP_CONCAT(CAST(coupon_amount as SIGNED) separator ',')
FROM ellabook_coupon WHERE coupon_subject_id=#{couponSubjectId,jdbcType=VARCHAR}
AND member_id=(SELECT member_id FROM ellabook_coupon
WHERE coupon_subject_id=#{couponSubjectId,jdbcType=VARCHAR} GROUP BY member_id LIMIT 0,1)

posted @ 2016-11-09 16:05  但愿不谢顶~  阅读(164)  评论(0编辑  收藏  举报