SQL:insert 与where不可连用
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 confId = 5’ at line 1
在SQL语法中,insert不能与where联用;
如:
同样的业务需求可以用update + where来实现!