mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-18 06:10:56 +08:00
- 优化 非 join 的多表查询的 SQL 格式;
This commit is contained in:
@@ -35,7 +35,7 @@ namespace FreeSql.Oracle.Curd
|
||||
|
||||
sbunion.Append(_select);
|
||||
if (_distinct) sbunion.Append("DISTINCT ");
|
||||
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();
|
||||
|
||||
var isRownum = string.IsNullOrEmpty(_orderby) && _skip > 0;
|
||||
|
||||
Reference in New Issue
Block a user