“In” clause in anorm?
问题 It seems no easy way to use "in" clause in anorm: val ids = List("111", "222", "333") val users = SQL("select * from users where id in ({ids})").on('ids-> ???).as(parser *) How to replace the ??? part? I tried: on('ids -> ids) on('ids -> ids.mkString("'","','","'")) on('ids -> ids.mkString("','") But none works. I see in the discussion the exactly same problem: https://groups.google.com/d/topic/play-framework/qls6dhhdayc/discussion, the author has a complex solution: val params = List(1, 2, 3