Update UserDAO.java

This commit is contained in:
xixu-me committed 2024-07-02 19:21:27 +08:00
1 parent 1ea216e71f
commit 96f85636c2
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ import server.vo.User;
public class UserDAO {
public static User get(String userName) throws Exception {
String sql = "SELECT * FROM user WHERE userName=?";
String sql = "SELECT * FROM usr WHERE userName=?";
try (Connection con = DBConnection.getConnection();
PreparedStatement pst = con.prepareStatement(sql)) {
pst.setString(1, userName);