mysql - 在事务中使用 MySQL Insert Delayed 时会发生什么?

标签 mysql insert transactions commit

插入是否随着事务提交完成?或者它们可以稍后完成?

最佳答案

根据 MySQL Documentation :

INSERT DELAYED works only with MyISAM, MEMORY, ARCHIVE, and (as of MySQL 5.1.19) BLACKHOLE tables. For engines that do not support DELAYED, an error occurs.

这些引擎都不支持事务,因此在功能上没有冲突。

我想您会发现延迟插入和事务的支持将相互排斥。

关于mysql - 在事务中使用 MySQL Insert Delayed 时会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2403530/

相关文章:

mysql - foreach 循环将多行插入数据库

android - MainActivity 中的 fragment - transaction.add

php - 即使没有成功,Ajax 成功功能仍然有效

php - 通过 xampp 中的 php 脚本运行 mysqldump 命令,但 .sql 为空

php - "SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: ' 2018 ' for column ' 在 ' at row 1 (SQL: insert into ` 新闻`

MySQL 行格式 : Difference between fixed and dynamic?

c++ - 插入 map 时的内存分配

mysql - 如何在 MySQL 'select ' 语句中使用 'insert'

Java、转账服务和并发问题

transactions - 覆盖 WebSphere 设置的事务超时?