语法:ROW_NUMBER() OVER(PARTITION BY COLUMN ORDER BY COLUMN)
SELECT ROW_NUMBER() OVER(ORDER BY CASE Col1 WHEN V1 THEN 1 WHEN V2 THEN 2 ELSE 3, Col2 ASC)