Browse Source

修改查询方法

master v0.2.3
guzeng 3 years ago
parent
commit
53351218b4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      chain.go

+ 2
- 2
chain.go View File

@ -117,10 +117,10 @@ func (this *Query) QueryStmt() error {
sql = helper.StringJoin("select ", title)
if this.alias != "" {
this.table = helper.StringJoin(table, " as ", this.alias)
table = helper.StringJoin(table, " as ", this.alias)
}
sql = helper.StringJoin(sql, " from ", this.table)
sql = helper.StringJoin(sql, " from ", table)
if len(this.join) > 0 {
for _, joinitem := range this.join {


Loading…
Cancel
Save