如下例:根据col1降序、col2升序。
with tt as
(select 'a1' col1, 1 col2
from dual
union all
select 'a1' col1, 2 col2
from dual
union all
select 'a2' col1, 0 col2
from dual
union all
select 'a2' col1, 3 col2 from dual)
select col1, col2 from tt order by col1 desc, col2
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21251711/viewspace-1102655/
,如需转载,请注明出处,否则将追究法律责任。