Delete in sqlparser::ast - Rust

pub struct Delete {
    pub delete_token: AttachedToken,
    pub optimizer_hint: Option<OptimizerHint>,
    pub tables: Vec<ObjectName>,
    pub from: FromTable,
    pub using: Option<Vec<TableWithJoins>>,
    pub selection: Option<Expr>,
    pub returning: Option<Vec<SelectItem>>,
    pub order_by: Vec<OrderByExpr>,
    pub limit: Option<Expr>,
}
Expand description

DELETE statement.

Token for the DELETE keyword

Multi tables delete are supported in mysql

FROM

USING (Snowflake, Postgres, MySQL)

WHERE

RETURNING

ORDER BY (MySQL)

LIMIT (MySQL)

§
§
§
§
§
§