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