select sum(length(couponrecordid)-length(replace(couponrecordid,',',''))) from t_order where paytype=2 and (studentstate!=4 and coachstate!=4)
and couponrecordid like '%,%';
其中:couponrecordid 字段中的值:
搞技术,研究财务自由及大保健