我的数据库是mysql5.7,innodb,已提交隔离级别。我害怕死锁,所以我保持mysql sql语句简单,只有:
insert into ... where ...insert into ... where ... on duplicate key update每个sql将只有上面的一条语句。例如:连接exec insert into ... where ...;一次,永远不要执行多语句insert ... where ...; update ... where ...; where
CREATE USER 'user1'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*483EC567DF968A6AD5E279257828E7CC4A12F0C230)当我运行sql脚本时,会得到如下错误我一开始就想我会有这样的事情+--------+----------