2. 做为参数传递记录集
type empcurtyp is ref cursor return emp%rowtype;
procedure open_emp_cv(emp_cv in out empcurtyp) is
.............
open emp_cv for sele_statament
loop
fetch emp_cv into emp_rec
...........
exit when ....
end loop
close emp_cv
type empcurtyp is ref cursor return emp%rowtype;
procedure open_emp_cv(emp_cv in out empcurtyp) is
.............
open emp_cv for sele_statament
loop
fetch emp_cv into emp_rec
...........
exit when ....
end loop
close emp_cv
解决方案 »
- Windows7下,如何安装Oracle10.x数据库~
- 关于OCI将数据入库的一些问题,求指点
- Oracle监听器启动后又自动停止的问题
- Oracle数据库的按时间查询问题,很简单,但是我不会
- oracle 可不可以设置某用户只能看某些表的满足特定条件的记录
- 求助.系统表空间报ORA-01157能否恢复
- 我希望判断某个月份的每一天的记录数是多少!sql这样的啊!但是还有问题阿55
- 怎样删除表中的重复数据,急!!
- 在linux下用proc编译程序,'*.pc'文件编译后成了'*.c?',多了一个问号?
- 请教一个数据库查询问题 有张表里面有经纬度列 longitude和latitude 但现在在里面创了新列的两个经纬度列en _longitude和en_lat
- SQL执行速度的问题
- 数据从sql server2000导入到oracle9i有什么好办法?
open rcType for'select * from aa';,可以作为参数传出
2.不可以
二者的区别是1是一种游标的类型,像varchar2一样,但是2时一个游标的记录集
open rcCursor for select ...............cursor rcType is select..........定义游标变量!相当于如上两句!