sql >> Base de Datos >  >> RDS >> Mysql

Declaración MYSQL IN

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