私は次のステートメントを使用しています
select *
from table
where column1 in(groups)
ここで、「groups」はサイズ n の文字列配列です。そのまま使用すると実行されないので、これを実行するための正確なクエリを誰かが提案できますか?
編集1
次のコードを使用する場合
try{
System.out.println("before execute query");
ps1.setArray(1,conn.createArrayOf("text",gs));
ps1.setArray(2,conn.createArrayOf("text",gs));
System.out.println("after execute query");
}
catch(Exception e)
{
System.out.println("hrer----"+e);
}
まず、「クエリを実行する前に」を出力し、次の例外を与えます
javax.servlet.ServletException:servlet execution threw an exception
*注 : * catch(Exception e) ブロックでは "hrer-----" は出力されません