|
|
@ -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 { |
|
|
|