How do you collect multiple rows into a struct? #2096
Answered
by
jackc
DanielCoder834
asked this question in
Q&A
-
I am trying to do a select query on two columns with a left join clause, and then returning the two columns values. This is the code I have so far for the query:
This is the code that represents the note being collected:
I got this error: |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Jul 23, 2024
Replies: 1 comment 1 reply
-
You probably want |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DanielCoder834
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably want
pgx.RowToStructByPos
instead ofpgx.RowTo
.