2

我想形成一个包含一组字符串作为参数的 SQL 查询:

SQL("SELECT * FROM TABLE somecolumn in {someset}")
.on("someset" -> Set("v1', "v2", "v3"))

但上面生成的 SQL 查询无效:

play.api.Application$$anon$1: Execution exception [[MySQLSyntaxErrorException: You have an   error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '_binary'??\0sr\0\'scala.collection.immutable.$colon$colon?\\c[???m\0L\0+scala' at line 1]]

不支持 Sets/Traversables 作为 anorm 中的参数类型,还是有其他方法可以做到这一点?

4

0 回答 0