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

MYSQL IN-Anweisung

SELECT Item
    FROM YourTable
    WHERE categories IN ('red', 'blue', 'green')
    GROUP BY Item
    HAVING COUNT(DISTINCT categories) = 3