Skip to content

Commit

Permalink
Update expression-function.md
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 authored Nov 22, 2024
1 parent 80fbdbf commit e12ebb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/expression-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ fsql.Select<T>()
//正常用法应该是这样
fsql.Select<T>()
.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'' 和 '',优化索引执行计划;
Expand Down

0 comments on commit e12ebb1

Please sign in to comment.