updateLong not allowed in ResultSet

前端 未结 3 870
醉酒成梦
醉酒成梦 2020-12-20 01:22

I am trying to add a serial number in my table. Here is my method:

public void reArrangeTrID(){
String parti = name.getText().toUpperCase();    
long trid =          


        
3条回答
  •  情话喂你
    2020-12-20 02:08

    As per javadoc

    static final int TYPE_SCROLL_SENSITIVE
    

    The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet.

    What you are looking for might be:

    static final int TYPE_SCROLL_INSENSITIVE
    

    The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet.

提交回复
热议问题