我的陈述有什么问题?
它没有通过JUnit测试。
String sqlStringLockWithIP = "UPDATE ACCOUNTS SET " + "LOCKSTATE = "+1+" , " + "IPADDRESS = "+ipAddress+" WHERE ID = " + id;
答案 0 :(得分:1)
你的意思是:
String sqlStringLockWithIP = "UPDATE ACCOUNTS SET LOCKSTATE = 1, IPADDRESS = '"+ipAddress+"' WHERE ID = " + id;