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