Select s.*, (
Select wm_concat(c.name)
From course c
Where c.id in (
SELECT REGEXP_SUBSTR(s.course_ids, '[^,]+', 1, LEVEL, 'i') AS d_ids
FROM DUAL
CONNECT BY LEVEL <= LENGTH(s.course_ids) - LENGTH(REGEXP_REPLACE(s.course_ids, ',', ''))+1)
)
)
From student s
There are tables student and course. There are course_ids in student. Now replace course_ids with course_names.
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325305739&siteId=291194637
Recommended
Ranking