hi i am fetching the data from db But I am getting this exception:
ora-01795 maximum number of expressions in a list is 1000 I checked that I have more than 2000 entries in the list passed to the query IN parameter.my code is as given below
String id ="";
sqlQueryBuff = sqlQueryBuff.append("t.id IN (");
for (Iterator iterator = resultList.iterator(); iterator.hasNext(); ) {
id = (String) iterator.next();
if (iterator.hasNext())
sqlQueryBuff.append(" '" + id + "' , ");
else
sqlQueryBuff.append(" '" + id + "' ) ");
}
query = session.createQuery(sqlQueryBuff.toString());
List list =query.list();
return list;
how can i resolve this issue thanks