STANDARD
STANDARD#
The STANDARD package defines the types that can be used in the PSM without any additional declarations other than the basic data types. The STANDARD package provides the types listed in the table below.
STANADARD Package Type Name | Type |
---|---|
SYS_REFCURSOR | REF CURSOR |
Example#
iSQL> CREATE OR REPLACE PROCEDURE PROC1 AS
CUR1 SYS_REFCURSOR;
VAR1 INTEGER;
BEGIN
OPEN CUR1 FOR 'SELECT ROWNUM FROM DUAL';
FETCH CUR1 INTO VAR1;
PRINTLN(VAR1);
CLOSE CUR1;
END;
/