Skip to main content

exists

Function exists 

Source
pub fn exists(statement: Statement, negated: bool) -> Expr
Expand description

Create an EXISTS expression.

ยงExamples

use sqlglot_rust::builder::{exists, select};

let inner = select(&["1"]).from("users").where_clause("id = 1").build();
let check = exists(inner, false);