Mysql
cainiao_23333
这个作者很懒,什么都没留下…
展开
-
修改数据库表中字段的时间值
1、修改为特定的时间update tableName set create_time = '2021-05-01 14:00:00' where id = 1;2、修改为15天前的时间update tableNameset create_time = create_time - interval 15 daywhere id = 1;原创 2021-05-13 14:56:20 · 2786 阅读 · 0 评论 -
Mysql 将日期和时间拼接起来传入表中 timestamp 类型的字段
- 只会保留 datefield,不管 timefield 是什么,最后数据库中 timefield 都为 00:00:00concat(datefield,' ',timefield) as date- 保留日期和时间concat(datefield,' ',timefield) as date/datetime- 2021-01-01 00:00:00cast(concat('2021-01-01', ' ', '20', ':00:00') as date)- 2021-01-01原创 2021-05-07 17:01:05 · 1367 阅读 · 0 评论 -
[Mac] MySQL Community Server 8.0.21 安装
官方下载地址步骤1:下载步骤2:安装下载下来之后直接双击安装可能会出现【无法打开“mysql-8.0.21-macos10.15-x86_64.pkg”,因为Apple无法检查其是否包含恶意软件。】解决方法:设置 - 安全性与隐私接下来一直下一步【注意中间弹出输入密码操作,设置好密码,请记住,后面登陆需要】安装完成后,设置的系统偏好界面下放有个MySQL标志。【启动】点击这标记,勾选Start MySQL when your computer st..原创 2020-10-07 20:00:20 · 689 阅读 · 0 评论 -
MySQL索引背后的数据结构及算法原理
http://blog.codinglabs.org/articles/theory-of-mysql-index.html转载 2019-09-16 01:07:28 · 73 阅读 · 0 评论 -
覆盖索引 covering index
https://yq.aliyun.com/articles/412937转载 2019-09-16 01:19:44 · 111 阅读 · 0 评论