楼主这样:
Vector user=new Vector;
rs=stmt.executeQuery("select * from admin");
while (rs.next())
{
String id=rs.getString(1);
String pass=rs.getString(2);
String flag=rs.getString(3);
String info=rs.getString(4);
Date time=rs.getDate(5);
administrators temp1=new administrators();
temp.setId(id);
temp.setPassword(pass);
temp.setFlag(flag);
temp.setInfo(info);
user.addElement(temp);
}
Vector user=new Vector;
rs=stmt.executeQuery("select * from admin");
while (rs.next())
{
String id=rs.getString(1);
String pass=rs.getString(2);
String flag=rs.getString(3);
String info=rs.getString(4);
Date time=rs.getDate(5);
administrators temp1=new administrators();
temp.setId(id);
temp.setPassword(pass);
temp.setFlag(flag);
temp.setInfo(info);
user.addElement(temp);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货