mySQL WHERE 子句 Shorthand

mySQL WHERE Clause Shorthand

是否可以 shorthand mySQL where 子句并说 :

SELECT * FROM table WHERE (animal = cat OR dog OR bird)

而不是说:

SELECT * FROM table WHERE (animal = cat OR row = dog OR row = bird)

谢谢

您要查找的是 IN 运算符。

SELECT * FROM table WHERE animal in ('cat','dog', 'bird')