ResultSet in JTable

前端 未结 2 1839
抹茶落季
抹茶落季 2021-01-26 02:52

How to display ResultSet in JTable. i am using this code

 String [] record= new 
    String[ColCount]; 
    for (i=0; i

        
2条回答
  •  清酒与你
    2021-01-26 03:41

    You need to put a while loop around your code to iterate over the result set. eg,

    while(rset1.next())
    {
    //do something
    }
    

提交回复
热议问题