Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#258·squirrel

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

View original on GitHubView discussion on GitHub