阅读背景:

ResultSet仅返回JTable的最后一行

来源:互联网 

I have done enough searches to solve my problem which i have done partly but there's this one bug that keeps disturbing me.I am trying to fetch data from a database based on a condition.I have a table 'user_branch' with a foreign key column branchID which is supposed to fetch the coresponding branchNames in another table 'branches' and I am supposed to display the results into a JTable.When i do System.out.println i get all my results but it returns only the last row when i display in a JTable(branchJTable).This is the code i am using I have done enough searches to solve my problem




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: