Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的数据库中有一个Type列,其中包含一组定义的字符串中的实体类型。如何进行如下查询:
Type
SELECT * FROM "Table" WHERE "Type" IN ('a','b','c');
INMedoo似乎不支持该条件,甚至WHERE像
IN
WHERE
'OR' => [ 'Type' => 'a', 'Type' => 'b', 'Type' => 'c', ]
不适用于重复的键。
INMedoo 支持 & 使用如下:
$database->select("table", "*", [ "type" => ['a', 'b', 'c'] ] ); // Its equivalent to : ...WHERE "type" IN ('a','b','c') ...