过程是数据库对象

来源:互联网 发布:课外阅读训练软件 编辑:程序博客网 时间:2024/06/04 19:57

周五的时候忘记发了,今天补上;

过程是数据库对象

创建存储过程可以使用create procedure 语句。
局部变量
declare var_name ;
set语句赋值
set var_name =expr;
select  into 语句
select col_name into var_name 
流程控制语句
if  条件 then statement_list
else if 条件 then statement_list
else statement_list
end if
case case_value(写不写均可)
when when_value then statement_list
else statement_list
end case 

原创粉丝点击