0
点赞
收藏
分享

微信扫一扫

137-mysql 逗号分割转行

墨香子儿 2022-12-02 阅读 194

SET @ncr_str = 'NCR1174599,NCR1174598'; SELECT substring_index(substring_index(@ncr_str, ',', b.help_topic_id + 1), ',', -1) FROM mysql.help_topic b WHERE b.help_topic_id < length(@ncr_str) - length(REPLACE(@ncr_str, ',', '')) + 1;

举报

相关推荐

0 条评论