Answer the question
In order to leave comments, you need to log in
Subquery with multiple output not outputting data?
The point is the following. There are two tables. In one text field, in which a string of the form ,1,3,4,
AND is stored, there is a second table where there are values of these keys.
SELECT RIGHT(LEFT(a.melody, LENGTH(a.melody)-1),LENGTH(a.melody)-2) AS melodyId, //обрезаю запятые по краям
,(SELECT GROUP_CONCAT(amelody.`name` SEPARATOR ', ') FROM amelody WHERE amelody.id IN (melodyId)) as melodyInfo
FROM
a
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question