查看是否有锁现象 ## 1. 看有没有锁等待 SHOW STATUS LIKE 'innodb_row_lock%'; ## 2. 查看哪个事务在等待(被阻塞了) USE information_schema SELECT * FROM information_schema.INNODB_TRX W ...
分类:
数据库 时间:
2020-07-10 20:42:20
阅读次数:
87
1.环境 MySQL5.7.26,事务隔离级别为RR 2.表结构 + + + + + + + | Field | Type | Null | Key | Default | Extra | + + + + + + + | id | int(11) unsigned | NO | PRI | NULL ...
分类:
数据库 时间:
2020-07-10 19:12:58
阅读次数:
88
1)count(*)会忽略所有的列,直接统计所有列数,不要使用count(列名),也就是不要使用count(1),count(id) 2)可以使用explain查询近似值,用近似值替代count(*) 3)使用缓存,记录总数 4)允许的话,把innodb改为myisam 5)SELECT (SELE ...
分类:
数据库 时间:
2020-07-10 18:48:16
阅读次数:
75
1.指定查询哪些字段 方式一: Query query = new Query(); query.fields().include("booking"); //包含该字段 query.fields().exclude("salary");//不包含该字段 Booking booking = mong ...
分类:
其他好文 时间:
2020-07-10 18:34:43
阅读次数:
268
本文摘抄自https://www.jianshu.com/p/b8b02afa74b1 官方文档:https://learning.getpostman.com/docs/postman/launching_postman/installation_and_updates/ ...
分类:
其他好文 时间:
2020-07-10 16:54:28
阅读次数:
66
NavicatPremium12连接oracle后再新建查询页修改数据后一直不能提交😓,只能写update、delete语句完成 今天上午有时间研究了下,需要选择表右键打开表才能进行操作,有很多好用的功能的界面化的功能,比如多条件筛选、排序等 ...
分类:
其他好文 时间:
2020-07-10 13:29:49
阅读次数:
75
打开开发工具 右击功能区->自定义功能区 勾选开发工具->确定 导入代码 开发工具选项卡->Visual Basic 右击Normal->插入->模块 粘贴代码->ctrl+s 保存 Sub 修改样式() ' 八号磅值5 ' 七号磅值5.5 ' 小六磅值6.5 六号磅值7.5 ' 小五磅值9 五号磅 ...
分类:
其他好文 时间:
2020-07-10 13:26:46
阅读次数:
118
1、查询 SELECT * FROM 表名 WHERE 列名 = ' '(条件) 2、查询某种数据并插入新的表中 SELECT * INTO new_table_name FROM old_tablename 3、修改数据 UPDATE 表名 SET 列名 = '123' WHERE 列名 = '4 ...
分类:
数据库 时间:
2020-07-10 13:11:38
阅读次数:
72
select * from show_center.biz_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; select * from show_center.std_show where show_Name ...
分类:
其他好文 时间:
2020-07-10 13:08:57
阅读次数:
72
MySQL innodb线程 一、master therad ①、刷新脏页到磁盘 ②、将日志缓冲刷新到磁盘 ③、undo页回收 ④、合并插入缓冲 参数innodb_io_capacity表示每秒刷新脏页的数量,默认为200。 innodb_max_dirty_pages_pct设置出发刷盘的脏页百分 ...
分类:
数据库 时间:
2020-07-10 11:46:22
阅读次数:
53