mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-07 08:50:52 +08:00
- 优化 非 join 的多表查询的 SQL 格式;
This commit is contained in:
@@ -40,7 +40,7 @@ namespace FreeSql.QuestDb.Curd
|
||||
sb.Append(_select);
|
||||
if (_distinct) sb.Append("DISTINCT ");
|
||||
sb.Append(field).Append(" \r\nFROM ");
|
||||
var tbsjoin = _tables.Where(a => a.Type != SelectTableInfoType.From).ToArray();
|
||||
var tbsjoin = _tables.Where(a => a.Type != SelectTableInfoType.From && a.Type != SelectTableInfoType.Parent).ToArray();
|
||||
var tbsfrom = _tables.Where(a => a.Type == SelectTableInfoType.From).ToArray();
|
||||
for (var a = 0; a < tbsfrom.Length; a++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user