MySQL 使用 比较函数 INTERVAL() 函数 实现数据按区间分组

更新:html 这个函数在postgreSQL中是没法使用的,替代方法以下mysql select t.tag, count(*) from ( select case when id < 2 then 'less 2' when id >=2 and id< 5 then '2to5' when id>=5 and id<8 then '5to8' else 'great 8' end
相关文章
相关标签/搜索