列转行(字符串分割)
SELECT a.id as id, substring_index(substring_index( a.name, ',', b.help_topic_id + 1 ), ',',-1 ) name,age FROM student a JOIN mysql.help_topic b ON b.help_topic_id < (length( a.name ) - length( REPLACE ( a.name, ',', '' ) ) + 1) ORDER BY a.id
列转行(字符串分割)
最新推荐文章于 2024-06-25 18:04:55 发布