sql 查询优化:COUNT(*)改成COUNT(1)

This commit is contained in:
2025-11-06 18:10:29 +08:00
parent c54c470818
commit c7187ebd36
16 changed files with 48 additions and 48 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ namespace FineUIPro.Web.DataShow
)f WHERE 1=1 ";
#region
var strSqlSum = @"select Count(*)as allCount from(
var strSqlSum = @"select COUNT(1)as allCount from(
select ROW_NUMBER() OVER(Order by ProjectCode desc) AS RowNumber,
* from (
select