摘要: 首先定义一个fruit表,表里含有很多数据: 定义一个数据文件: 定义一个数据连接访问: 然后是界面文件: 输出结果为: 阅读全文
posted @ 2017-01-08 16:48 Claricre 阅读(252) 评论(0) 推荐(0)
摘要: 存储过程创建语法: create or replace procedure 存储过程名(param1 in type,param2 out type) as 变量1 类型(值范围); 变量2 类型(值范围); Begin Select count(*) into 变量1 from 表A where列 阅读全文
posted @ 2017-01-08 16:25 Claricre 阅读(271) 评论(0) 推荐(0)
摘要: 一、MySQL 创建存储过程 “pr_add” 是个简单的 MySQL 存储过程,这个存储过程有两个 int 类型的输入参数 “a”、“b”,返回这两个参数的和。 drop procedure if exists pr_add; -- 计算两个数之和 create procedure pr_add( 阅读全文
posted @ 2017-01-08 16:20 Claricre 阅读(183) 评论(0) 推荐(0)