MySql數據庫排序問題

select authseq , authstate , transtime   from mgt.mgt_mauthqueue  ORDER BY  CASE  WHEN authstate='1' THEN 1  WHEN authstate='0' THEN 2  WHEN authstate='5' THEN 3  ELSE 4   END       ,  transtime DESC
相關文章
相關標籤/搜索