![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql 函数
裴伟建
这个作者很懒,什么都没留下…
展开
-
mysql 非法日期格式查询 case函数用法
MySQL case 函数用法:Cast(字段名 as 转换的类型 )查询非法日期格式select * from table where cast(字段 as date) is null原创 2018-01-11 11:53:01 · 2837 阅读 · 2 评论 -
MYSQL 组内排序
MYSQL 组内排序group_concat + order bySELECT id,substring_index(GROUP_CONCAT(id ORDER BY score desc),',',3) as num fromtest GROUP BY class原创 2018-01-29 18:25:18 · 315 阅读 · 0 评论 -
Mysql 根据小数点位数查询
MYSQL 判断小数点位数取出小数点多余3位的小数select score from student where LOCATE('.',score) > 0 and LENGTH(SUBSTRING_INDEX(score,'.' ,- 1)) >=3原创 2018-03-19 16:48:07 · 4061 阅读 · 1 评论