oracle cursor oracle 游標(biāo)用法
定義 :
cursor c_stkcode is
select * from dl_stkcode
where exchgcode_=exchgcode and stkcode_=stkcode;
stkrow c_stkcode%rowtype;
使用 :
open c_stkcode;
fetch c_stkcode into stkrow;
已用時(shí)間: 00: 00: 02.00
idmp@idmp-10.47.162.56> DECLARE
2 TYPE x IS REF CURSOR RETURN dual%ROWTYPE;
3 v_cur x;
4 begin
5 OPEN v_cur for SELECT * FROM dual;
6 end;
7 /

PL/SQL 過(guò)程已成功完成。

已用時(shí)間: 00: 00: 00.31
cursor c_stkcode is
select * from dl_stkcode
where exchgcode_=exchgcode and stkcode_=stkcode;
stkrow c_stkcode%rowtype;
使用 :
open c_stkcode;
fetch c_stkcode into stkrow;












posted on 2008-06-14 23:47 小高 閱讀(1757) 評(píng)論(0) 編輯 收藏