SELECT * ,
ROW_NUMBER() OVER ( ORDER BY ffavoriteid ) AS num
FROM V_EBFavorite_Transport
WHERE FStatus IN ( 2, 1, 4 )
ORDER BY CHARINDEX(RTRIM(CAST(FStatus AS VARCHAR(30))), ‘2, 1, 4‘)
时间: 2024-10-15 10:24:47
SELECT * ,
ROW_NUMBER() OVER ( ORDER BY ffavoriteid ) AS num
FROM V_EBFavorite_Transport
WHERE FStatus IN ( 2, 1, 4 )
ORDER BY CHARINDEX(RTRIM(CAST(FStatus AS VARCHAR(30))), ‘2, 1, 4‘)