Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql join table with a text columns with ids splited by char

SELECT a.c1,
        a.ids,
        GROUP_CONCAT(b.name SEPARATOR '|')
FROM Table1 a
INNER JOIN Table2 b
ON FIND_IN_SET(b.id, REPLACE(a.ids, '|', ','))
GROUP BY a.c1,
        a.ids
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #join #table #text #columns #ids #splited #char
ADD COMMENT
Topic
Name
3+3 =