修复所有数据库性能问题

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

@@ -65,6 +65,7 @@
PreparedStatement vipsql = null;
ResultSet viprs = null;
Connection conn = null;
conn = DriverManager.getConnection(url, use, password);
vipsql = conn.prepareStatement(
"select userName,case when VIP = 1 then 'VIP用户' else '普通用户' end as VIP,case when Administrator = 1 then '管理员' else '' end as Administrator from show_user where userName=?");
vipsql.setString(1, users);