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