Пример #1
0
 public static int getRouteID(int id) throws SQLException {
   FConnect con = new FConnect();
   ResultSet rs = con.load("volo", "id = " + id);
   // System.out.println(rs.getRow());
   int rt = 0;
   while (rs.next()) rt = rs.getInt(3);
   con.close();
   return rt;
 }