Struct sqlparser::ast::Select  [−][src]
pub struct Select {
    pub distinct: bool,
    pub top: Option<Top>,
    pub projection: Vec<SelectItem>,
    pub from: Vec<TableWithJoins>,
    pub lateral_views: Vec<LateralView>,
    pub selection: Option<Expr>,
    pub group_by: Vec<Expr>,
    pub cluster_by: Vec<Expr>,
    pub distribute_by: Vec<Expr>,
    pub sort_by: Vec<Expr>,
    pub having: Option<Expr>,
}Expand description
A restricted variant of SELECT (without CTEs/ORDER BY), which may
appear either as the only body item of an SQLQuery, or as an operand
to a set operation like UNION.
Fields
distinct: booltop: Option<Top>MSSQL syntax: TOP (<N>) [ PERCENT ] [ WITH TIES ]
projection: Vec<SelectItem>projection expressions
from: Vec<TableWithJoins>FROM
lateral_views: Vec<LateralView>LATERAL VIEWs
selection: Option<Expr>WHERE
group_by: Vec<Expr>GROUP BY
cluster_by: Vec<Expr>CLUSTER BY (Hive)
distribute_by: Vec<Expr>DISTRIBUTE BY (Hive)
sort_by: Vec<Expr>SORT BY (Hive)
having: Option<Expr>HAVING
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Select
impl UnwindSafe for Select
Blanket Implementations
Mutably borrows from an owned value. Read more