SELECT *,ROW_NUMBER() OVER(PARTITION BY bc ORDER BY CONVERT(int,firstOrder) ASC) AS num FROM #temp
Copyright @ 2024 影子博客 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster