1

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 ???
4

2 回答 2

2

下面的代码解决了我的问题。

SELECT INTO unsolvedNodes array_agg(idDestination)
FROM road
WHERE idOrigin = ANY(solvedNodes);
于 2013-04-30T16:03:06.090 回答
0
DELETE FROM entry_coll_tag
WHERE  entry_id = obj_id
AND tag_id = ANY(coll_ids);

就是这样。

于 2013-06-03T21:05:33.057 回答