我正在尝试在Android开发中使用SQL Server更新数据
String query = " UPDATE dbo.DEMOGRAPHICS SET LAST_UPDATED_USERNAME = '" + Username + "',ENROLLMENT_SCHEDULE = '" + Enrolfix + "',STATUS_ID = '" + Status + "',LAST_UPDATED ='" + formattedDate + "' where REGISTRATION_NUMBER = IsNumeric('" + RegisBaru + "') ";
Statement stmt = connect.createStatement();
stmt.executeUpdate(query);
ConnectionResult = query;
当我更新数据时,请检查数据是否存在,但不会在数据库中更新。如果我在查询中查看数据,这就是我的数据