SQL returns the SQL representation of this aliased expression in the form "expr AS alias".
()
| 212 | // SQL returns the SQL representation of this aliased expression in the form |
| 213 | // "expr AS alias". |
| 214 | func (a *AliasedExpression) SQL() string { |
| 215 | if a == nil { |
| 216 | return "" |
| 217 | } |
| 218 | return exprSQL(a.Expr) + " AS " + a.Alias |
| 219 | } |
| 220 | |
| 221 | // SQL returns the SQL representation of this CAST expression in the form |
| 222 | // "CAST(expr AS type)". |