From e12ebb138909af19b0b0311c5e36545f9c095433 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:53:41 +0800 Subject: [PATCH] Update expression-function.md --- docs/guide/expression-function.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'' 和 '',优化索引执行计划;