Mysql存储过程基本用法
2010-09-28 19:36
639 查看
create proce pro_count(out param int) begin select count(*) into param from testuser end call pro_count(@a); select @a; --------------------------- declare 声明变量用法 create proce pro_test (in parameter integer) begin delcare variable varchar(20); if parameter=1 then set variable='MYSQL'; else set variable='PHP'; end if; select variable; end
相关文章推荐
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- mysql 存储过程及基本用法
- MySQL 存储过程的基本用法(2)
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法介绍
- MySQL 存储过程的基本用法
- MySQL 存储过程的基本用法
- MySQL存储过程的基本函数
- mysql存储过程基本函数
- mysql存储过程基本函数
- Mysql 存储过程基本语法
- MySQL 存储过程游标的简单用法
- MySQL 存储过程参数用法 in, out, inout