scalikejdbc and MySQL subquery WHERE IN (SELECT statement)

226 Views Asked by At

It looks like scalikejdbc doesn't support MySQL's WHERE IN (SELECT statement) queries, as IN requires a sequence of items as a parameter, it doesn't accept a query.

Any ideas for making it work? Thank you!

1

There are 1 best solutions below

0
synthetic On

Turns out sqls.in() supports SQLSyntax as a second parameter.