时间:2021-07-01 10:21:17 帮助过:43人阅读
sql语句:
public static void deleteUser(String loginName){
String sql = "update user set flag=3 where loginName= "+ loginName ;
DBUtil.getInstance().delete(sql);
}
错误信息:
java.sql.SQLException: Data truncation: Truncated incorrect DOUBLE value: 'admin' Query: update user set flag=3 where loginName= 123654 Parameters: []
不太懂是怎么错了