java.sql.BatchUpdateException: 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 '('1512144017', 'quqiang01' at line 1 at sun.reflect.NativeConstructorAccessorImpl.ne
我们都知道oracle merge可以用来增和改,很少用它来删除.但是有时候我们仍然需要该特性,以提高性能,典型的场景就是将业务库逻辑删除的记录同步到查询库的时候,做真正的物理删除,这个时候merge的delete子句就再恰当不过了.如下所示: MERGE INTO A USING (EMPLOYEE) B ON (A.EMPLOYEEID = B.EMPLOYEEID AND A.YEAR = B.YEAR) WHEN MATCHED THEN UPDATE SET balance = b.b