-1
我已經有我需要的表排序利用:分配軍銜已經排序表
order by
case when name = 'zzz' then '1' else null end asc
case when name = 'aaa' then '2' else null end asc
case when name = 'rrr' then '3' else null end asc
...
...
現在,我想排名我的表的電流爲了得到某事像這樣:
new_rank name
1 zzz
2 aaa
3 rrr
... ...
... ...
我嘗試row_number() over()
但實際上我沒有列排序。
這麼簡單,謝謝你,偉大工程:) – Wasciu