- 博客(3)
- 收藏
- 关注
原创 mysql存储过程读书笔记(3): 变量
1. 变量名: Mysql变量名推荐30个字符以内,命名要有实际意义 2. 声明变量的方式: declare variable_name[,variable_name,....] datatype [default value]; 可以同时定义多个具有相同类型的变量,如果没有default表达式,则默认变量声明之后默认值是Null declare 普通变量...
2013-12-28 00:10:02 83
原创 mysql存储过程读书笔记2(control and conditional logic)
1. If create procedure example3(stu_id int) begin declare stu_name varchar(30); select name into stu_name from student where student_id = stu_id; If stu_name is not null Then se...
2013-12-26 23:35:50 57
原创 mysql 存储过程读书笔记(1)基础
mysql存储过程目前只支持存储过程,存储函数,触发器 存储过程基本结构: Create procedure ProcedureName(Params[in,out]) Begin Declare attr attrType; procedure content; End; Example: 1. 创建基本存储过程 create procedure...
2013-12-26 21:53:16 61
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人