Hi guys
i need help in query the database using
JDBC. Wen i query the database the result return to me is not in order how do u get the database to return u the data in ascending order
this is the code i use to query the database :
try{rs = ConnectionDB.st.executeQuery("Select * from LockerInfo");
while (rs.next())
{
result[l] = rs.getString("Used");
lockerID[l] = rs.getString("LockerID");
System.out.println("Result = " + result[l] + " LockerID = " + lockerID[l]);
l ++;
}
}
regards