![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
御风御吾
路漫漫其修远兮,吾将上下而求索
展开
-
MySQL的SELECT ...for update
MySQL的SELECT ...for update 最近的项目中,因为涉及到Mysql数据中乐观锁和悲观锁的使用,所以结合项目和网上的知识点对乐观锁和悲观锁的知识进行总结。悲观锁介绍 悲观锁是对数据被的修改持悲观态度(认为数据在被修改的时候一定会存在并发问题),因此在整个数据处理过程中将数据锁定。悲观锁的实现,往往依靠数据库提供的锁机制(也只有数据库层提供的锁机制才能真正保证数据访问的排他性...转载 2018-03-29 20:22:24 · 411 阅读 · 0 评论 -
MySQL慢查询日志
http://www.cnblogs.com/kerrycode/p/5593204.html转载 2017-06-23 20:43:55 · 279 阅读 · 0 评论 -
MySQL的日期函数
MySQL 获得当前日期时间 函数 获得当前日期+时间(date + time)函数:now() mysql> select now(); +---------------------+ | now() | +---------------------+ | 2008-08-08 22:20:46 | +---------------------+ 获得当前日期+时转载 2017-07-05 15:22:34 · 463 阅读 · 1 评论 -
Mysql Join语法以及性能优化
阅读目录(Content) 引言一.Join语法概述 JOIN 功能分类 二.Inner join三.Left join四.Right join五.Cross join六.Full join七.性能优化 1.显示(explicit) inner join VS 隐式(implicit) inner join2.left join/right join VS inner join转载 2017-06-27 15:42:45 · 3983 阅读 · 0 评论 -
MySQL 中 delete 语句的子查询限制
MySQL 中 delete 语句的子查询限制转自:https://www.cnblogs.com/dwarcheng/p/5887207.html场景一 delete from student where id = (select max(id) from student); [Err] 1093 - You can't specify target table 'student' for u...转载 2018-03-13 11:39:56 · 604 阅读 · 0 评论