Update sqlserver first distinct

This commit is contained in:
sunkaixuan
2023-06-12 15:55:44 +08:00
parent b6f5714720
commit d583fd8352

View File

@@ -104,6 +104,10 @@ namespace SqlSugar
this.OldSql += this.Offset;
}
result = GetSqlQuerySql(result);
if (isFirst && IsDistinct)
{
result = result.Replace("TOP 1 DISTINCT", "TOP 1 ");
}
return result;
}