365key.com
发现·保存·分享@天天网摘

Q版365key  设为首页 加为收藏 帮助

 首页  网址  添加  我的网摘  我的订阅  最新网摘  收录榜  点击榜  同好  配置  工具箱  标签  兴趣小组 
  IT168 |  华军下载 |  猫扑 |  VeryCD |  CSDN技术 |  DoNews |  9Flash |  中金 |  游侠 |  股票天下 |  游戏公会 |  电子工程 |  白银时代 |  和365Key合作

roseandwort的网摘列表 RSS格式输出  365Key邮件订阅,每天可以定期收到邮件通知  使用 POTU 订阅
搜索词: 时间:
分类:     排序:
 
刷新列表 共1页、2项网摘
这样的存储过程怎么写?请帮帮忙点击:51
 分类:Oracle 时间:2005-12-28 18:28:31 roseandwort收录 复制到我的网摘
要求sql语句的文件名为变量,并且游标返回多行记录,下面存储过程怎么写
CREATE OR REPLACE PROCEDURE PROC1(niandu in VARCHAR2, dh in VARCHAR2)
is
v_rec mytemptable%rowtype;
v_file varchar2(50);
strTemp varchar2(200);
type hehecur is ref cursor;
tempCursor hehecur;
begin
v_file := 'HH'||niandu;
strTemp := '';
strTemp := 'select * From ' || v_file || ' Where dhhh=dh';

open tempCursor for strtemp;
loop
fetch tempCursor into v_rec;
exit when tempCursor%notfound;
insert into mytemptable values(v_rec.id, v_rec.des, v_rec.qty);
commit;
end loop;
close tempCursor;
END PROC1;
http://community.csdn.net/Expert/topic/4479/4479905.xml?temp=.4174768
请问怎样从oracle导出表数据?点击:51
 分类:Oracle 时间:2005-10-31 18:58:37 roseandwort收录 复制到我的网摘
http://community.csdn.net/Expert/topic/4357/4357642.xml?temp=.7560999
页码: [1 共1页、2项网摘

使用帮助 |  如何保存网摘 |  给365Key提建议 |  媒体报道 |  站长推广须知
Copyright (C) 2004 365Key.com--天天网摘 All Rights Reserved