+"',password='"+password+"',email='"+email
+"',grade="+grade+" where userId="+userId
这几处是字符串需要加单引号
这样用"UPDATE table1 SET address = 'King's Road“,” WS' WHERE name = ‘James’;
在,两侧加双引号“”
UPDATE table1 SET address =“King's Road, WS” WHERE name = James