SQL returns the SQL representation of this ALL expression as "expr op ALL (subquery)".
()
| 323 | |
| 324 | // SQL returns the SQL representation of this ALL expression as "expr op ALL (subquery)". |
| 325 | func (a *AllExpression) SQL() string { |
| 326 | if a == nil { |
| 327 | return "" |
| 328 | } |
| 329 | return fmt.Sprintf("%s %s ALL (%s)", exprSQL(a.Expr), a.Operator, stmtSQL(a.Subquery)) |
| 330 | } |
| 331 | |
| 332 | // SQL returns the SQL representation of this function call including arguments, |
| 333 | // optional DISTINCT modifier, ORDER BY clause (for aggregates like STRING_AGG), |