Select in where clause
Author: saito-svCreated Aug 7, 2020Updated Oct 31, 2024
This is more like a question than an issue.
Is there a way to use a select sub query inside the WHERE IN?
something like:
WHERE post.id IN ( SELECT some_value_id FROM user WHERE id = $1 )
Source: Masterminds/squirrel