| |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | if (idref != null) { |
---|
| | System.out.println("UPDATE "+ DbFuel.TABLE_NAME +" SET fixed1="+ score +" WHERE idref="+ idref +" and area=" + area); |
---|
| | System.out.println("UPDATE "+ DbPostoffice.TABLE_NAME +" SET fixed1="+ score +" WHERE idref="+ idref +" and area=" + area); |
---|
| | ps3.setInt(1, score); |
---|
| | ps3.setString(2, idref); |
---|
| | ps3.setInt(3, area); |
---|
| | ps3.executeUpdate(); |
---|
| |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | System.out.println("UPDATE "+ DbFuel.TABLE_NAME +" SET up=1 WHERE (fixed<>fixed1) and (up=0)"); |
---|
| | System.out.println("UPDATE "+ DbPostoffice.TABLE_NAME +" SET up=1 WHERE (fixed<>fixed1) and (up=0)"); |
---|
| | ps5.executeUpdate(); |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | |
|