MySQL存储过程实例
2017-04-18 18:10
411 查看
MySQL存储过程实例代码如下:
drop table if exists t1; create table t1 ( id int not null ); insert into t1 values(1), (2), (3); delimiter // create procedure myfun(in para int) begin select * from t1 where id = para; end; // delimiter ; set @a = 1; call myfun(@a); call myfun(2);
相关文章推荐
- MySQL 有输入输出参数的存储过程实例
- MySQL存储过程实例
- PHP调用MYSQL存储过程实例
- PHP和MySQL存储过程的实例演示
- PHP调用MYSQL存储过程实例
- MySQL 有输入输出参数的存储过程实例
- mysql存储过程实例
- Mysql存储过程实例解析
- MYSQL存储过程中使用游标的实例
- mysql存储过程语法及实例
- MySQL 嵌套存储过程 实例
- MySql存储过程实例解析(一)
- mysql存储过程语法及实例
- mysql存储过程的一个完整实例
- Mysql存储过程实例
- PHP调用MYSQL存储过程实例
- php mysql 存储过程实例
- MySQL 存储过程实例
- mysql 存储过程使用游标实例
- mysql 存储过程实例 (日期以小时递增 while loop循环嵌套 随机数生成)