diff --git a/docs/guide/expression-function.md b/docs/guide/expression-function.md index 265e99d7e..f3ed715c8 100644 --- a/docs/guide/expression-function.md +++ b/docs/guide/expression-function.md @@ -102,9 +102,9 @@ fsql.Select() //正常用法应该是这样 fsql.Select() - .Where(a => a.CreateTime.Subtract(DateTime.Today).TotalSeconds > 0) + .Where(a => a.CreateTime.Subtract(DateTime.Today).TotalDays == 0) .ToList(); -//datediff(second, date1, date2) +//WHERE datediff(day, date1, date2) = 0 ``` > SqlServer nvarchar/varchar 已兼容表达式解析,分别解析为:N'' 和 '',优化索引执行计划;