String sql="insert into userInfo(NAME,EMPCODE,DEPTCODE,SEX,TEL,MOBILE,STATE,USERTYPE,ADDRESS,POSTALCODE,STATION,QQ) " +
"values(?,?,?,?,?,?,?,?,?,?,?,?) where userId=?";
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where userId=1434594273200' at line 1
这样写不对啊,insert插入语句怎么能指定userId;按照你的逻辑应该使用update
insert 语句没有where条件
INSERT
语句没有 WHERE
子句的啊!!!
where userId=1434594273200' at line 1
看到错误了没,,, insert 怎么能有 where
可以换成update
SQL写的严重有问题,insert不可以使用where
再看看SQL语句格式