while(rs.next())
{
String key=rs.getString(1);
String val=rs.getString(2);
it=ar1.get(k).toString();
if(it.trim().equals(key.trim()))
{
val=val.substring(1);
val=val+"1";
}
else
{
val=val.substring(1);
val=val+"0";
}
st = con.prepareStatement("update win set seq=? where keyy=?");
st.setString(1,val);
st.setString(2,key); //here i am getting exception
st.executeUpdate();
st.close();
}
if i change data type of seq and keyy in table as text then it shows The data types text and text are incompatible in the equal to operator