GROUP BY advanced expressions SQL returns the SQL representation of this ROLLUP expression as "ROLLUP(col1, col2, ...)".
()
| 487 | // SQL returns the SQL representation of this ROLLUP expression as |
| 488 | // "ROLLUP(col1, col2, ...)". |
| 489 | func (r *RollupExpression) SQL() string { |
| 490 | if r == nil { |
| 491 | return "" |
| 492 | } |
| 493 | return "ROLLUP(" + exprListSQL(r.Expressions) + ")" |
| 494 | } |
| 495 | |
| 496 | // SQL returns the SQL representation of this CUBE expression as |
| 497 | // "CUBE(col1, col2, ...)". |