Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Instrução MYSQL IN

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