我想自杀了,上午好好的,下午不行了,急死了!
emoam 2003-07-02 02:22:15
程序中有这么一段,后台运行的。
Vector vec_item = new Vector();
String str_count = null;
ResultSet rs_field = null;
……
try{
System.out.println(run to here1);
while(rs_field.next()){
System.out.println(run to here2);
str_count = rs_field.getObject(1).toString() ;
vec_item.addElement(str_count);
}
}catch(Exception exx){
System.out.println(exx.toString());
}
这段程序的功能很简单,将结果集rs_field中的某一特定字段add到vec_item中
但我的程序运行时显示:
run to here1
但就是没有出现:run to here2
我要晕了,不就一个while语句吗?会出现这样的问题?上午我还能运行while中的内容啊
哪位大虾帮帮我,我真的要急S了!!