首页 > 数据库技术 > 详细

mysql 行锁 表锁

时间:2019-09-23 10:47:19      阅读:95      评论:0      收藏:0      [点我收藏+]

 

 MySQL数据库
- 引擎:
- innodb
- 支持事务
- 锁
- 行锁
- 表锁
- 示例:
- 终端:
begin;
select xx from xx for update;
commit;
- pymysql
cursor.execute(‘select * from xx for update‘)
- django
with trancation.automic():
models.User.objects.all().for_update()
- mysaim
- 不支持事务
- 锁
- 表锁
- 快

mysql 行锁 表锁

原文:https://www.cnblogs.com/huay/p/11570723.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!