mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 15:30:53 +08:00
Updated 多表查询 (markdown)
4
多表查询.md
4
多表查询.md
@@ -172,8 +172,8 @@ fsql.Select<t1>()
|
||||
```sql
|
||||
SELECT ...
|
||||
FROM t1
|
||||
LEFT JOIn t2 on ...
|
||||
WHERE t1.IsDeleted = 0 && t2.IsDeleted = 0
|
||||
LEFT JOIn t2 on ... AND (t2.IsDeleted = 0)
|
||||
WHERE t1.IsDeleted = 0
|
||||
```
|
||||
|
||||
当其中的实体可附加表达式才会进行,支持子表查询。单次查询使用的表数目越多收益越大。
|
||||
|
||||
Reference in New Issue
Block a user