postgresql的排序问题-指定特定行在首行或尾行,其他行降序
postgresql的sql语句排序,指定特定行(比如 ‘合计’行 )在首行(then 99999)或尾行(then -1),其他行降序(else user_count end desc;)SELECT app_name, user_count, flow_usage, active_2_monthFROM t_mgsp_app_flow_monthWHERE st
原创
2018-02-05 14:43:32 ·
804 阅读 ·
0 评论