有人知道如何在plpgsql的IN运算符中使用数组?
SELECT INTO unsolvedNodes array_agg(idDestination)
FROM road
WHERE idOrigin IN ???
答案 0 :(得分:2)
下面的代码解决了我的答案:
SELECT INTO unsolvedNodes array_agg(idDestination)
FROM road
WHERE idOrigin = ANY(solvedNodes);
答案 1 :(得分:0)
DELETE FROM entry_coll_tag
WHERE entry_id = obj_id
AND tag_id = ANY(coll_ids);
就是这样。