MySQL 存储过程相互调用举例
来源:互联网 发布:linux 模糊查找文件 编辑:程序博客网 时间:2024/06/09 18:56
create procedure prccharges(in orderno char(6),out shippingCharges float(4,2),out wrapCharges float(4,2)) begin select mshippingcharges into shippingCharges from orders where corderno = orderno; select mgiftwrapcharges into wrapcharges from orders where corderno = orderno; end;create procedure prcHandLingCharges(in orderno char(6),out handlingCharges float(4,2)) begin declare ppp float(4,2); declare qqq float(4,2); call prccharges(no,p,q); set handlingCharges = p+ q; end;
上面的例子调用方法
call prcHandLingCharges('1',@af);select @af;
0 0
- MySQL 存储过程相互调用举例
- MySQL存储过程相互调用
- MySQL存储过程相互调用
- MySQL存储过程相互调用并获得错误码
- MySQL存储过程相互调用并获得错误码
- 存储过程之间相互调用
- Java程序调用存储过程应用举例
- mysql存储过程调用
- MySQL++调用存储过程
- 调用mysql存储过程
- mysql 调用存储过程
- MySQL调用存储过程
- 触发器与存储过程的相互调用
- 触发器与存储过程的相互调用
- PHP调用MySQL存储过程
- php调用mysql 存储过程
- ibatis 调用mysql 存储过程
- mysql event调用存储过程
- C语言结构体与共用体(1)
- sort: 349. Intersection of Two Arrays \ 350. Intersection of Two Arrays II
- 51nod 1548 欧姆诺姆和糖果
- android ContentProvider内容提供者
- poj 2367 拓扑排序
- MySQL 存储过程相互调用举例
- uva 11463 Commandos
- Spring Web MVC框架(三) 异步处理
- [linux]当在unix系统中输入任何命令时导致command not found情况
- MySQL存错过程动态执行sql的方式来返回结果集
- 一个简易而有趣的爬虫——对草榴帖子的爬取
- PAT B1031. 查验身份证(15)
- android四大组件之ContentProvider
- 86. Partition List