Hey Experts, I'm really fustrated, for some reason this loop doesn't seem to work when going through..
I'm using postgres which gets a sequence count from a table in a col.. the rs.next scans through the rows, i.e. 1,2,3,4,5,6,7,8.... 8 being the highest say for example, i want the if condition to be true. However, this does not seem to work.
Please reply if you hace any questions.
int a = 0;
String temp2 = rs.getString ("count");
int i = Integer.parseInt(temp2);
String astring = Integer.toString (a);
Statement temp3 = temp.createStatement();
temp3.addBatch("INSERT INTO count_table (name) VALUES ('User generate value = " + astring + "');");
collem = "al" + astring;