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
相關文章
相關標籤/搜索