利用replace、length的内置函数

SELECT id,  length(field) - length(replace(field,',',''))+1 as count   FROM `table` where 1

 

相关文章:

  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-07-02
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案