Created
January 20, 2020 16:24
-
-
Save fwojciec/139d9ee1d760171a24c30e0e86e8b105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- name: ListAuthorsByBookIDs :many | |
SELECT authors.*, book_authors.book_id FROM authors, book_authors | |
WHERE book_authors.author_id = authors.id AND book_authors.book_id = ANY($1::bigint[]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment