oracle调用存储过程
来源:互联网 发布:sql2000数据库快速备份 编辑:程序博客网 时间:2024/04/30 09:27
调用存储过程时,定义变量declare一定要在begin之前。
declare
-- Local variables here
i integer;
a VARCHAR(100);
b VARCHAR(20);
abc LBG;
v_values plmpackage.plmresultset;
begin
abc:=LBG('1001AA100000000001JO', '1001AA10000000000GZE', '1001AA100000000001JP', '1001AA10000000000GZG');
-- Test statements here
--a := 'INSERT INTO PLMLK.PLM_TMP_RPTREFVALUES (PKID,ts) VALUES (''sdf'',''sdf'')';
--dbms_output.put_line(a);
--execute immediate a;
-- SELECT PKID INTO b FROM PLM_TMP_RPTREFVALUES;
plm_abcgetmodel('part', 'lcstate', 'name', 'pk_id', abc,v_values);
end;
declare c_cur plmpackage.plmresultset; linktype varchar2(20);
begin
linktype:='shiplink';
-- Call the procedure
plm_getpllftsingleexpland(linktype,
'',
'',
'V',
'm.m_id, m.m_name',
'fe0b1ebc-4c6d-4dd4-80a8-e0f18a200121',
'',
5000,
c_cur);
end;
declare
-- Local variables here
i integer;
a VARCHAR(100);
b VARCHAR(20);
abc LBG;
v_values plmpackage.plmresultset;
begin
abc:=LBG('1001AA100000000001JO', '1001AA10000000000GZE', '1001AA100000000001JP', '1001AA10000000000GZG');
-- Test statements here
--a := 'INSERT INTO PLMLK.PLM_TMP_RPTREFVALUES (PKID,ts) VALUES (''sdf'',''sdf'')';
--dbms_output.put_line(a);
--execute immediate a;
-- SELECT PKID INTO b FROM PLM_TMP_RPTREFVALUES;
plm_abcgetmodel('part', 'lcstate', 'name', 'pk_id', abc,v_values);
end;
declare c_cur plmpackage.plmresultset; linktype varchar2(20);
begin
linktype:='shiplink';
-- Call the procedure
plm_getpllftsingleexpland(linktype,
'',
'',
'V',
'm.m_id, m.m_name',
'fe0b1ebc-4c6d-4dd4-80a8-e0f18a200121',
'',
5000,
c_cur);
end;
0 0
- oracle调用存储过程
- Oracle调用存储过程
- oracle调用存储过程
- oracle 存储过程调用
- Oracle存储过程调用存储过程
- oracle 存储过程 调用存储过程
- oracle存储过程调用存储过程
- ORACLE存储过程调用存储过程
- oracle 存储过程中调用存储过程
- java调用oracle存储过程
- java 调用 oracle 存储过程
- ASP调用oracle存储过程
- C#调用oracle存储过程
- java调用存储过程(oracle)
- C#调用oracle存储过程
- ASP调用oracle存储过程
- ASP调用oracle存储过程
- C# 调用oracle存储过程
- [leetcode]--389. Find the Difference
- 明日操盘机器人选择题五(2017-02-02)
- 新年感想
- 明日操盘机器人选择题六(2017-02-02)
- js获取table中的td宽度并赋值到另一个table的td中,实现宽度对齐
- oracle调用存储过程
- ios 在release时屏蔽掉NSlog()的几个方法
- 表头固定内容滚动【css笔记】
- 【C语言】LeetCode 152. Maximum Product Subarray
- 逆向工程核心原理读书笔记-API钩取之IE浏览器连接控制
- oracle存储过程调用游标例子
- Linux驱动--并发和竞争
- POJ 2431Expedition(优先队列解题)
- Android中实现滑动的七种方法