修复所有数据库性能问题

This commit is contained in:
FJY
2017-11-01 23:02:30 +08:00
parent b4da65a6e3
commit bca76d88a6
31 changed files with 288 additions and 171 deletions

View File

@@ -40,6 +40,7 @@
String use = "root";
String password = "";
Class.forName(driver);
try{
Connection conn = DriverManager.getConnection(url, use, password);
PreparedStatement sql = conn
.prepareStatement("update user set userName=?,Email=?,Administrator = (case ? when '是' then '1'else '0' end ),VIP = (case ? when '是' then '1'else '0' end )where userName=?;");
@@ -54,6 +55,9 @@
}
sql.close();
conn.close();
} catch (Exception ex) {
ex.printStackTrace();
}
%>
<!-- 判断是否是插入成功 -->
<%