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.
Does someone know how can I use an array in the IN operator in plpgsql?
SELECT INTO unsolvedNodes array_agg(idDestination) FROM road WHERE idOrigin IN ???
下面的代码解决了我的问题。
SELECT INTO unsolvedNodes array_agg(idDestination) FROM road WHERE idOrigin = ANY(solvedNodes);
DELETE FROM entry_coll_tag WHERE entry_id = obj_id AND tag_id = ANY(coll_ids);
就是这样。