Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Wie vergleiche ich zwei Werte aus 1 Spalte in MYSQL

SELECT  *
FROM    combination c
LEFT JOIN
        option o
ON      o.id = SUBSTRING_INDEX(c.combination, '_', 1)
LEFT JOIN
        variant v
ON      v.id = SUBSTRING_INDEX(c.combination, '_', -1)