随笔分类 -  mysql

1 2 3 4 5 ··· 14 下一页
摘要:MySQL Handling NULL Values - GeeksforGeeks https://www.geeksforgeeks.org/mysql/mysql-handling-null-values/ NULL Values and Indexes The NULL values can 阅读全文
posted @ 2025-09-15 16:42 papering 阅读(6) 评论(0) 推荐(0)
摘要:取余 minute(create_time)-minute(create_time)%10 10,20,30 select count(*), concat(date(pay_time), '-', hour(pay_time), '-', round(minute(pay_time)/10,0)* 阅读全文
posted @ 2025-06-05 17:22 papering 阅读(12) 评论(0) 推荐(0)
摘要:SELECT idFROM userWHERE 1 AND (CASE WHEN id%10=0 THEN id%10>0 WHEN id%10=1 THEN 1 WHEN id%10=2 THEN id%10>=2 ELSE 0 END)LIMIT 100 返回尾号0,1,2的id 翻译 搜索 复 阅读全文
posted @ 2025-04-03 14:26 papering 阅读(10) 评论(0) 推荐(0)
摘要:索引中的数据顺序和查找中的排列顺序一致 MySQL索引学习笔记 https://mp.weixin.qq.com/s/qeH5YYSBYh6cTEf4Cya2nA 翻译 搜索 复制 阅读全文
posted @ 2025-01-23 12:26 papering 阅读(13) 评论(0) 推荐(0)
摘要:array_contains | StarRocks https://docs.starrocks.io/zh/docs/sql-reference/sql-functions/array-functions/array_contains/ unnest_bitmap | StarRocks htt 阅读全文
posted @ 2024-12-05 18:30 papering 阅读(109) 评论(0) 推荐(0)
摘要:id>start_id order by id asc limit size 翻译 搜索 复制 阅读全文
posted @ 2024-10-12 11:14 papering 阅读(15) 评论(0) 推荐(0)
摘要:MySQL 是怎么做并发控制的? https://mp.weixin.qq.com/s/EjKtAj9H6KpuRlWAfoLYSA 翻译 搜索 复制 阅读全文
posted @ 2024-10-10 10:28 papering 阅读(13) 评论(0) 推荐(0)
摘要:小结: 1) where having 的过滤范围 having group by 、聚合函数 where select 字段 2)别名支持的位置 The alias is used as the expression's column name and can be used in GROUP B 阅读全文
posted @ 2024-06-19 16:50 papering 阅读(32) 评论(0) 推荐(0)
摘要:分布式任务调度内的 MySQL 分页查询优化 https://mp.weixin.qq.com/s/VhSzxYIRv83T3D3JD4cORg 三、优化方案 3.1 优化方案确定 当前SQL执行计划以主键进行顺序遍历,是一个范围扫描,有点像在一片很大的居民区按照序号挨家挨户寻找一些特定的人一样,比 阅读全文
posted @ 2024-05-23 10:04 papering 阅读(30) 评论(0) 推荐(0)
摘要:mysql 字段值分布很少的字段要不要加索引_数据量超过多少加索引-CSDN博客 https://blog.csdn.net/qq_24935119/article/details/108601180 翻译 搜索 复制 阅读全文
posted @ 2024-05-06 22:11 papering 阅读(17) 评论(0) 推荐(0)
摘要:前缀索引 · MySQL优化 · 看云 https://www.kancloud.cn/lizhenjie1992/my/554979 通过字段前n位创建的索引就称为“前缀索引”。如果一个字段内容的前边的n位信息已经足够标识当前的字段内容,就可以把字段的前n位获得出来并创建索引,该索引占据空间更小、 阅读全文
posted @ 2024-04-23 18:06 papering 阅读(47) 评论(0) 推荐(0)
摘要:MySQL :: MySQL 8.0 Reference Manual :: 13.2.2 The DATE, DATETIME, and TIMESTAMP Types https://dev.mysql.com/doc/refman/8.0/en/datetime.html 13.2.2 The 阅读全文
posted @ 2024-02-27 10:09 papering 阅读(23) 评论(0) 推荐(0)
摘要:Apache ShardingSphere https://shardingsphere.apache.org/ 背景 传统的将数据集中存储至单一节点的解决方案,在性能、可用性和运维成本这三方面已经难于满足海量数据的场景。 从性能方面来说,由于关系型数据库大多采用 B+ 树类型的索引,在数据量超过阈 阅读全文
posted @ 2023-12-04 21:19 papering 阅读(103) 评论(0) 推荐(0)
摘要:千万级数据深分页查询SQL性能优化实践 https://mp.weixin.qq.com/s/2o54GvYJKHArVk-NEiE2Tw 翻译 搜索 复制 阅读全文
posted @ 2023-11-10 17:26 papering 阅读(75) 评论(0) 推荐(0)
摘要:device_id event_time device_status 开 开 关 关 开 关 最近一次开机的时刻 SELECT MIN(ts0),device_id FROM ( SELECT t0.event_time AS ts0,t0.device_id ,ts1 FROM tab as t0 阅读全文
posted @ 2023-11-01 15:30 papering 阅读(12) 评论(0) 推荐(0)
摘要:Querying system-period temporal data - IBM Documentation https://www.ibm.com/docs/en/db2/11.5?topic=tables-querying Querying system-period temporal da 阅读全文
posted @ 2023-09-21 15:10 papering 阅读(30) 评论(0) 推荐(0)
摘要:慢SQL治理经验总结 https://mp.weixin.qq.com/s/LZRSQJufGRpRw6u4h_Uyww 慢SQL治理经验总结 原创 药糖 大淘宝技术 2023-09-18 16:20 发表于浙江 在过去两年的工作中,我们团队曾负责大淘宝技术的慢SQL治理工作,作为横向的数据安全治理 阅读全文
posted @ 2023-09-18 16:34 papering 阅读(150) 评论(0) 推荐(0)
摘要:MySQL :: MySQL 8.0 Reference Manual :: 8.2.1.17 GROUP BY Optimization https://dev.mysql.com/doc/refman/8.0/en/group-by-optimization.html MySQL :: MySQ 阅读全文
posted @ 2023-09-16 13:58 papering 阅读(50) 评论(0) 推荐(0)
摘要:小结: 1、 数据页需要读写,写入到一半的过程中可能会发生了意外断电等情况,所以为了保证数据页的准确性,还引入了校验码; 我跟面试官说MySQL单表数据量不要超过两千万,面试官不信 https://mp.weixin.qq.com/s/C3VI2-pMkhkNIwxzQlhdLg 翻译 搜索 复制 阅读全文
posted @ 2023-09-14 19:25 papering 阅读(34) 评论(0) 推荐(0)
摘要:MySQL :: MySQL 8.0 Reference Manual :: 9.3 Keywords and Reserved Words https://dev.mysql.com/doc/refman/8.0/en/keywords.html 9.3 Keywords and Reserved 阅读全文
posted @ 2023-08-21 11:35 papering 阅读(70) 评论(0) 推荐(0)

1 2 3 4 5 ··· 14 下一页