rs.getInt() returnValue problem
hi.. here is my code:
while (rs.next()){
int i= rs.getInt("Numbers");
System.Out.Println(i);
}
my database is:
Numbers
1
2
3
4
5
but output is;
3
4
5
1
2
i wonder why?
thanks..
hi.. here is my code:
while (rs.next()){
int i= rs.getInt("Numbers");
System.Out.Println(i);
}
my database is:
Numbers
1
2
3
4
5
but output is;
3
4
5
1
2
i wonder why?
thanks..
no it is not ordered and i dont wanna order it, it is just an example.
for example i changed values;
Numbers
4
3
7
1
2
8
but output is;
7
1
2
8
4
3
firs 2 values come last..
it is strange..i dont know that i am missing somethings..