select * from new_mg.voucher_payment a, voucher b where a.payment_id =12 and b.submission_id in (a.submission_ids)
使用这种方式并没有办法 in到 ids里的所有id
解决办法是使用FIND_IN_SET
select b.voucher_id from new_mg.voucher_payment a, voucher b where a.payment_id =12 and FIND_IN_SET(b.submission_id,a.submission_ids)