shuju stud=new shuju()
stud.setDM(rs.getString(1))
stud.setDNumber(rs.getInt(2))
data.add(stud)//加上这句
}
你查询出来后没有把他加到data里面去啊。
select a from A a1 where not exists (select 1 from table where A a2 where a1.a=a2.b)union
select b from A a1 where not exists (select 1 from table where A a2 where a1.b=a2.a)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)