每个人每天在公司都会有很多打卡记录,已知某天的打卡记录如下,现要求查询出当天每个人的考勤记录即最早和最晚打卡记……阅读更多
![](https://www.xubingtao.cn/media/pic/posts/4729/pre.jpg)
James(包括docker版)配MySQL等数据库
在conf目录下面有个james-database.properties(docker版在/root/conf……阅读更多
![](https://www.xubingtao.cn/media/pic/posts/4395/james-databasepre.jpg)
解决MySQL数据库报1142(42000)ALTER/REFERENCES command denied to user没权限问题
MySQL数据库报错的关键信息有“ALTER command denied to user”、“REFEREN……阅读更多
![](https://www.xubingtao.cn/media/pic/posts/4389/1142_42000pre.jpg)
解决MySQL用sum()函数对浮点数求和统计数据时出现精度丢失问题
浮点数出现精度丢失问题应该是所有计算机语言都存在的问题,MySQL也有这种问题,比如直接用sum函数对浮点数求……阅读更多
![](https://www.xubingtao.cn/media/pic/posts/4012/sum.png)
macOS上安装MySQL
在macOS上安装MySQL数据库有很多种方法,比如在docker中安装,这个我两年前写过一篇叫《Docker……阅读更多
![](https://xubingtao.cn/media/pic/posts/3962/macos_install_mysql-pre.jpg)
MySQL创建联合索引报key长度超3072 bytes的[42000][1071]错误
问题时这样的,我在建表时加了联合索引结果报key长度超过3072个字节了,如下图。 先说解决方案:1.调整索引……阅读更多
![](https://xubingtao.cn/media/pic/posts/3940/mysqlkeytoolong-pre.jpg)
【转载】MySQL高级部分全集
原文 SmlieAgain SmlieAgain 2021-04-07 一、函数 一.字符函数 二、数字函数 ……阅读更多
![](https://www.xubingtao.cn/wp-content/uploads/2021/05/WX20210410-130742@2x.jpg)
MySQL字段类型跟值不一致导致order by排序不起作用
晚上想给小程序加热门文章功能,但后台在写SQL的时候却发现排序一直不起作用,由于之前网站是用wordpress……阅读更多
![](https://www.xubingtao.cn/wp-content/uploads/2020/08/mysql排序不起作用预览图.jpg)
Docker中安装MySQL
本文图文讲解在docker中安装mysql以及一些配置和相关的知识点。 官网就简单的一句话描述mysql(Th……阅读更多
![](https://www.xubingtao.cn/wp-content/uploads/2020/02/mysql%E5%AE%98%E7%BD%91.png)
MySQL报“Incorrect datetime value: ‘0000-00-00 00:00:00’ for column xxx at row 1”错误
今晚正准备给网站加SEO,没想到在新增字段的时候竟然报错了: 我感到很莫名其妙,我明明是新增keywords为……阅读更多
![](https://www.xubingtao.cn/wp-content/uploads/2020/01/%E6%96%B0%E5%A2%9E%E5%AD%97%E6%AE%B5%E6%8A%A5%E6%97%A5%E6%9C%9F%E9%BB%98%E8%AE%A4%E6%A0%BC%E5%BC%8F%E4%B8%8D%E5%AF%B9-1.png)
![](https://www.xubingtao.cn/qrcode/wxgzh.jpg)
![](https://www.xubingtao.cn/qrcode/wxxcx.jpg)