pub enum OutputClause {
Output {
output_token: AttachedToken,
select_items: Vec<SelectItem>,
into_table: Option<SelectInto>,
},
Returning {
returning_token: AttachedToken,
select_items: Vec<SelectItem>,
},
}Expand description
A OUTPUT Clause in the end of a MERGE Statement
Example: OUTPUT $action, deleted.* INTO dbo.temp_products; mssql
OUTPUT clause
Fields
The OUTPUT token that starts the sub-expression.
The select items to output
Optional INTO table to direct the output
RETURNING clause
Fields
The RETURNING token that starts the sub-expression.
The select items to return