优化gui
This commit is contained in:
parent
d591378938
commit
d11c768e04
@ -82,6 +82,7 @@ public class JdbcSqlClass {
|
||||
}
|
||||
|
||||
|
||||
|
||||
String sql = "select column_name\n" +
|
||||
"from INFORMATION_SCHEMA.COLUMNS\n" +
|
||||
"where TABLE_NAME = 'srdisassemble'";
|
||||
@ -162,10 +163,12 @@ public class JdbcSqlClass {
|
||||
Statement stmt = getConnection();
|
||||
try {
|
||||
int i = stmt.executeUpdate(sql);
|
||||
stmt.close();
|
||||
return i;
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -204,7 +207,6 @@ public class JdbcSqlClass {
|
||||
// SrDisassemble.getInstance().getLogger().info(ChatColor.GREEN+"数据插入成功");
|
||||
}
|
||||
|
||||
connection.close();
|
||||
connection.close();
|
||||
return id;
|
||||
} catch (Exception e) {
|
||||
@ -249,7 +251,6 @@ public class JdbcSqlClass {
|
||||
|
||||
rs.close();
|
||||
connection.close();
|
||||
connection.close();
|
||||
|
||||
return data;
|
||||
} catch (Exception e) {
|
||||
@ -280,7 +281,6 @@ public class JdbcSqlClass {
|
||||
|
||||
rs.close();
|
||||
connection.close();
|
||||
connection.close();
|
||||
|
||||
return data;
|
||||
} catch (Exception e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user