Class TMergeWhenClause
- Namespace
- gudusoft.gsqlparser.nodes
- Assembly
- gudusoft.gsqlparser.dll
when [not] matched clause in merge statement.
merge into ....
[when matched [and search_conditions ] then update set {col_name = expression} | delete]
[when not matched [and search_conditions ] then insert [(column_list)] values (value_list)]
call method Condition to return search_condition if any.
call method UpdateClause, DeleteClause and InsertClause separately to get related update clause, delete clause and insert clause.
public class TMergeWhenClause : TParseTreeNode, Visitable
- Inheritance
-
TMergeWhenClause
- Implements
- Inherited Members
Fields
matched
public const int matched = 1
Field Value
matched_with_condition
public const int matched_with_condition = 3
Field Value
not_matched
public const int not_matched = 2
Field Value
not_matched_by_source
public const int not_matched_by_source = 7
Field Value
not_matched_by_source_with_condition
public const int not_matched_by_source_with_condition = 8
Field Value
not_matched_by_target
public const int not_matched_by_target = 5
Field Value
not_matched_by_target_with_condition
public const int not_matched_by_target_with_condition = 6
Field Value
not_matched_with_condition
public const int not_matched_with_condition = 4
Field Value
Properties
Condition
public virtual TExpression Condition { get; set; }
Property Value
DeleteClause
public virtual TMergeDeleteClause DeleteClause { get; set; }
Property Value
InsertClause
public virtual TMergeInsertClause InsertClause { get; set; }
Property Value
Type
public virtual int Type { get; set; }
Property Value
UpdateClause
public virtual TMergeUpdateClause UpdateClause { get; set; }
Property Value
Methods
accept(TParseTreeVisitor)
public override void accept(TParseTreeVisitor v)
Parameters
acceptChildren(TParseTreeVisitor)
public override void acceptChildren(TParseTreeVisitor v)
Parameters
doParse(TCustomSqlStatement, ESqlClause)
analyze this node
public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
Parameters
psqlTCustomSqlStatementplocationESqlClause
init(object, object)
public override void init(object arg1, object arg2)