MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
SetVariableStmt类 参考

SetVairable 语句,设置变量,当前是会话变量,但是只有会话变量,没有全局变量 更多...

#include <set_variable_stmt.h>

类 SetVariableStmt 继承关系图:
Stmt

Public 成员函数

 SetVariableStmt (const SetVariableSqlNode &set_variable)
 
StmtType type () const override
 
const char * var_name () const
 
const Valuevar_value () const
 
virtual StmtType type () const =0
 

静态 Public 成员函数

static RC create (const SetVariableSqlNode &set_variable, Stmt *&stmt)
 
- 静态 Public 成员函数 继承自 Stmt
static RC create_stmt (Db *db, ParsedSqlNode &sql_node, Stmt *&stmt)
 

Private 属性

SetVariableSqlNode set_variable_
 

详细描述

SetVairable 语句,设置变量,当前是会话变量,但是只有会话变量,没有全局变量

成员函数说明

◆ create()

static RC SetVariableStmt::create ( const SetVariableSqlNode set_variable,
Stmt *&  stmt 
)
inlinestatic

可以校验是否存在某个变量,但是这里忽略

◆ type()

StmtType SetVariableStmt::type ( ) const
inlineoverridevirtual

实现了 Stmt.


该类的文档由以下文件生成: