标签:char bsp logs varchar2 隐式游标 row ret rom 变量
1 CREATE OR REPLACE PROCEDURE CX_XM 2 (in_xh IN char,out_xm OUT varchar2) 3 AS 4 BEGIN 5 SELECT 姓名 INTO out_xm 6 FROM XSB 7 WHERE 学号=in_xh AND ROWNUM=1; 8 DBMS_OUTPUT.PUT_LINE(out_xm); 9 END CX_XM;
1 FOR<变量名>IN<游标名>[(<参数1>[,<参数2>...])]LOOP 2 语句段 3 END LOOP;
TYPE<REF CURSOR 类型名> IS REF CURSOR[RETURN<返回类型>]; eg: DECLARE TYPE xs_cur IS REF CURSOR RETURN XSB%ROWTYPE;
REF CURSOR类型既可以是强类型,也可以是弱类型。强REF CURSOR类型有返回类型;而弱类型没有
1 DECLARE 2 TYPE xs_cur IS REF CURSOR RETURN XSB%ROWTYPE; /*强类型*/ 3 TYPE mycur IS REF CURSOR; /*弱类型*/
标签:char bsp logs varchar2 隐式游标 row ret rom 变量
原文地址:http://www.cnblogs.com/yuelien/p/6629375.html