2

Can I execute a query like this? If not, can you give me a better way to do it without walking through my array or imploding it.

    ....
    DECLARE
     examples example[];
     myinput myinput[];
    BEGIN
     select array(select e from mytable e where row_id in (myinput)) into examples
...

1 Answer 1

4
SELECT  e
FROM    mytable e
WHERE   row_id = ANY(myinput)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.