SQL returns the SQL representation of this scalar subquery as "(SELECT ...)".
()
| 307 | |
| 308 | // SQL returns the SQL representation of this scalar subquery as "(SELECT ...)". |
| 309 | func (s *SubqueryExpression) SQL() string { |
| 310 | if s == nil { |
| 311 | return "" |
| 312 | } |
| 313 | return fmt.Sprintf("(%s)", stmtSQL(s.Subquery)) |
| 314 | } |
| 315 | |
| 316 | // SQL returns the SQL representation of this ANY expression as "expr op ANY (subquery)". |
| 317 | func (a *AnyExpression) SQL() string { |