1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Testing option
SQL> var return_value varchar2(255)
SQL> var get_status Number
SQL>
SQL> DECLARE
2 message varchar2(20):= 'Hello, World!';
3 BEGIN
4 dbms_output.enable;
5 dbms_output.put_line(message);
6 END;
7 /
ProcÚdure PL/SQL terminÚe avec succÞs.
SQL> Begin
2 DBMS_OUTPUT.GET_LINE (:return_value, :get_status);
3 End;
4 /
ProcÚdure PL/SQL terminÚe avec succÞs.
SQL> print return_value
RETURN_VALUE
--------------------------------------------------------------------------------
Hello, World!
SQL> print get_status
GET_STATUS
----------
0 |