我要将数据库中的某个字段中的值拆分成多条信息用来模糊查询。
这是我要拆分的表里面的数据
拆分语句为
SELECT substring_index(substring_index(t.OrderId,',', b.help_topic_id + 1), ',', -1) FROM zst_order_comp t
join mysql.help_topic b ON b.help_topic_id < (LENGTH(t.OrderId) - LENGTH(REPLACE(t.OrderId, ',', '')) + 1)