()
| 247 | } |
| 248 | |
| 249 | private int beginbackup() throws SQLException { |
| 250 | mysqlHelper.exeSql("insert into tb_backup (begintime) values(now())"); |
| 251 | ResultSet ret=mysqlHelper.querySql("select LAST_INSERT_ID() from tb_backup"); |
| 252 | if(ret!=null&&ret.next()) |
| 253 | { |
| 254 | return ret.getInt("LAST_INSERT_ID()"); |
| 255 | } |
| 256 | return -1; |
| 257 | } |
| 258 | |
| 259 | private void finishbackup() |
| 260 | { |