Mysql's method of turning one line into multiple lines
How does mysql turn one line into multiple lines? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
Mysql method to change one line into multiple lines: 1, change one line into multiple lines, the code is [substring_index (a. RN.
Mysql's method of turning one line into multiple lines:
Put
Turn into
SELECT substring_index (substring_index (a.rn as rn) a JOIN mysql.help_topic b ON b.help_topic_id),',',-1) AS rnFROM (select'1, 2, 3, 4)