IEC61850_ForPowerSupply_ForNW/src/com/power/datasave/PowerDataSave_SQL.java
@@ -107,14 +107,14 @@
                         " from information_schema.tables " + 
                         " where table_schema='db_pwrdev_data_history' " + 
                         " AND TABLE_NAME like 'tb_pwrdev_historydata_%' " + 
                         " AND UPDATE_TIME <= '"+Com.getDateTimeFormat(deldate, Com.DTF_YMDhms)+"';" ;
                         " AND CREATE_TIME <= '"+Com.getDateTimeFormat(deldate, Com.DTF_YMDhms)+"';" ;
      
      String sql_delete_strs = " DROP TABLE IF EXISTS ";
      
      Sql_Mysql sql = new Sql_Mysql(conn_pool.getConn());
      ResultSet res = null;
      int count = 0;
      res = sql.sqlMysqlQuery(sql_select_strs);
      res = sql.sqlMysqlTotalQuery(sql_select_strs);
      try {
         while(res.next()) {
            if(count > 0) {
@@ -126,7 +126,7 @@
            count++;
         }
         if(count > 0) {
            sql.sqlMysqlExecute(sql_delete_strs);
            sql.sqlMysqlTotalExecute(sql_delete_strs);
         }
         
         res.close();