![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 77
db_who_care
这个作者很懒,什么都没留下…
展开
-
mysql语法笔记
1.substring_index(str,delim,count) str:要处理的字符串 delim:分隔符 count:计数 例子:str=www.wikibt.com substring_index(str,'.',1) 结果是:www 2.replace(uuid(),'-','') ---->将uuid()中的‘-’,去掉,即替换成空串 3.如何创建组合索引 语法:CREATE UNIQUE INDEX index ON table( c原创 2021-02-24 19:35:49 · 248 阅读 · 0 评论 -
MySQL数据库中10位或13位时间戳和标准时间相互转换
select FLOOR(unix_timestamp(create_time)) from page; 字符串时间转10位时间戳 create_time为字段名 page为表名 Select FROM_UNIXTIME(round(time_ms / 1000,0)) from page ; 13位时间戳转日期类型 time_ms为字段名 page为表名 Sele...原创 2018-12-21 11:43:25 · 12424 阅读 · 1 评论