SQL returns the SQL representation of this EXISTS expression as "EXISTS (subquery)".
()
| 299 | |
| 300 | // SQL returns the SQL representation of this EXISTS expression as "EXISTS (subquery)". |
| 301 | func (e *ExistsExpression) SQL() string { |
| 302 | if e == nil { |
| 303 | return "" |
| 304 | } |
| 305 | return fmt.Sprintf("EXISTS (%s)", stmtSQL(e.Subquery)) |
| 306 | } |
| 307 | |
| 308 | // SQL returns the SQL representation of this scalar subquery as "(SELECT ...)". |
| 309 | func (s *SubqueryExpression) SQL() string { |