函数更新无法在数据库中更新

时间:2018-12-12 04:25:11

标签: android sql-server

我正在尝试在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;

当我更新数据时,请检查数据是否存在,但不会在数据库中更新。如果我在查询中查看数据,这就是我的数据

enter image description here

0 个答案:

没有答案