![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
Bee.F
这个作者很懒,什么都没留下…
展开
-
MySQL 排序使 null 排最后
MySQL 排序使 null 排最后原创 2022-12-04 15:48:56 · 11741 阅读 · 0 评论 -
mysql 设置当天结束时间到数据库变成+1秒
设置时间"2022-10-14 23:59:59 999" 到数据库时,数据库保存的数据变成 “2022-10-15 00:00:00”原创 2022-10-15 15:36:15 · 837 阅读 · 0 评论 -
MySQL 日期时间相关操作
日期取年、月、日select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xx' #分别取年、月、日、时间select id, phone,time,year(time) from user where phone='xxxxxx' #取年select id, phone,time,month(time) from user where phone='xxxxxx' #取月sel转载 2021-01-17 10:45:55 · 6898 阅读 · 0 评论 -
docker mysql差8小时,修改docket mysql时区
今早发现发布文章时时间比平时慢8个小时,而用本地数据数据正常,于是定位到可能是docker 的mysql时区不对;1、进入docket的mysql容器:docker exec -it mysql(容器id或名称) /bin/bash2、输入用户名:mydql -uroot -p3、输入密码:4、查看docket mysql时区:show variables like '%time_zo...原创 2020-02-29 12:59:59 · 924 阅读 · 0 评论