Mybatis 相关操作(想起来就记录一下~~)
字符串用逗号隔开转列
如数据库某一字段存储值为: 01,02,03 查询转列显示
SELECT
substring_index(
substring_index('01,02,03',',',help_topic_id+1),',',-1
) as Id
FROM mysql.help_topic
WHERE help_topic_id < (length('01,02,03'...
原创
2020-01-02 16:11:30 ·
209 阅读 ·
0 评论