每天一练习(微信发红包)

摘要: <?php $price = 100; $maxNum = 5; $price = $price * 100; $pingjun = round($price / $maxNum) * 2; $i = 1; while($i <= $maxNum){ if($i == $maxNum){ $hong 阅读全文
posted @ 2021-12-08 21:59 1450811640 阅读(25) 评论(0) 推荐(0)

MySQL事务之MVCC、undo、redo、binlog、二阶段提交

摘要: 前置概念 1.数据库中,数据在内存中叫data buffer,数据在磁盘上叫data file。 事务的日志也一样,在内存中叫log buffer,在磁盘上叫log file。 2.data buffer中的数据会在合适的时间 由存储引擎写入到data file。并不在事务提交时机制中。 3.che 阅读全文
posted @ 2021-12-08 17:09 1450811640 阅读(473) 评论(0) 推荐(0)