SELECT
    substring_index(substring_index(a.chain,'_',b.help_topic_id + 1    ),    '_' ,- 1    ) AS ID
FROM
    (select '1_11_1223_1242' as chain) a  
JOIN mysql.help_topic b ON b.help_topic_id <
(length(a.chain) - length( replace(a.chain, '_', '')  ) + 1)

 

001.mysql-炸裂函数的实现

 

相关文章:

  • 2021-10-17
  • 2022-01-06
  • 2021-12-19
  • 2021-10-24
  • 2022-01-05
  • 2022-12-23
  • 2022-01-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2021-09-09
  • 2021-06-03
  • 2021-04-24
相关资源
相似解决方案