2条回答
默认
最新
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏
匿名用户
5Mmysql 怎样批处理插入数据库,只提交一次?
官方文档
https://dev.mysql.com/doc/refman/8.0/en/commit.html
START TRANSACTION or BEGIN start a new transaction.
COMMIT commits the current transaction, making its changes permanent.
ROLLBACK rolls back the current transaction, canceling its changes.
SET autocommit disables or enables the default autocommit mode for the current session.
最简单的,就是
begin
insert …
insert …
…
commit;
评论
有用 0
墨值悬赏