select sum(length(couponrecordid)-length(replace(couponrecordid,',',''))) from t_order where paytype=2 and (studentstate!=4 and coachstate!=4)

and couponrecordid  like '%,%';


其中:couponrecordid 字段中的值:

12,566

67,45,88,99

134,7,8,9,678   



相关文章:

  • 2022-12-23
  • 2021-06-05
  • 2021-11-07
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2021-08-02
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案