SQL returns the SQL representation of this CUBE expression as "CUBE(col1, col2, ...)".
()
| 496 | // SQL returns the SQL representation of this CUBE expression as |
| 497 | // "CUBE(col1, col2, ...)". |
| 498 | func (c *CubeExpression) SQL() string { |
| 499 | if c == nil { |
| 500 | return "" |
| 501 | } |
| 502 | return "CUBE(" + exprListSQL(c.Expressions) + ")" |
| 503 | } |
| 504 | |
| 505 | // SQL returns the SQL representation of this GROUPING SETS expression as |
| 506 | // "GROUPING SETS((a, b), (a), ())". |