$contains: [1, 2] // @> [1, 2] (PG array contains operator)
$contained: [1, 2] // <@ [1, 2] (PG array contained by operator)
我想知道上面两个运算符
的实际用途是什么答案 0 :(得分:0)
SELECT ...
FROM ...
WHERE foo IN (11,22,33)
HAVING COUNT(*) = 3; -- that is, all 3 were found
(这假设IN子句中的每个项只有一行。)