PreparedStatement IN clause alternatives?

前端 未结 30 3996
情歌与酒
情歌与酒 2020-11-21 05:19

What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values du

30条回答
  •  面向向阳花
    2020-11-21 05:30

    My workaround (JavaScript)

        var s1 = " SELECT "
    
     + "FROM   table t "
    
     + "  where t.field in ";
    
      var s3 = '(';
    
      for(var i =0;i

    SearchTerms is the array which contains your input/keys/fields etc

提交回复
热议问题