pub struct Delete {Show 17 fields
pub table: TableRef,
pub on_cluster: Option<OnCluster>,
pub alias: Option<Identifier>,
pub alias_explicit_as: bool,
pub using: Vec<TableRef>,
pub where_clause: Option<Where>,
pub output: Option<OutputClause>,
pub leading_comments: Vec<String>,
pub with: Option<With>,
pub limit: Option<Expression>,
pub order_by: Option<OrderBy>,
pub returning: Vec<Expression>,
pub tables: Vec<TableRef>,
pub tables_from_using: bool,
pub joins: Vec<Join>,
pub force_index: Option<String>,
pub no_from: bool,
}Expand description
DELETE statement
Fields§
§table: TableRef§on_cluster: Option<OnCluster>ClickHouse: ON CLUSTER clause for distributed DDL
alias: Option<Identifier>Optional alias for the table
alias_explicit_as: boolWhether the alias was declared with explicit AS keyword
using: Vec<TableRef>PostgreSQL/DuckDB USING clause - additional tables to join
where_clause: Option<Where>§output: Option<OutputClause>OUTPUT clause (TSQL)
leading_comments: Vec<String>Leading comments before the statement
with: Option<With>WITH clause (CTEs)
limit: Option<Expression>LIMIT clause (MySQL)
order_by: Option<OrderBy>ORDER BY clause (MySQL)
returning: Vec<Expression>RETURNING clause (PostgreSQL)
tables: Vec<TableRef>MySQL multi-table DELETE: DELETE t1, t2 FROM … or DELETE FROM t1, t2 USING … These are the target tables to delete from
tables_from_using: boolTrue if tables were after FROM keyword (DELETE FROM t1, t2 USING syntax) False if tables were before FROM keyword (DELETE t1, t2 FROM syntax)
joins: Vec<Join>JOINs in MySQL multi-table DELETE: DELETE t1 FROM t1 LEFT JOIN t2 …
force_index: Option<String>FORCE INDEX hint (MySQL): DELETE FROM t FORCE INDEX (idx)
no_from: boolBigQuery-style DELETE without FROM keyword: DELETE table WHERE …