Reputation: 351
I've the following procedure code:
create or replace
PROCEDURE Ventas_cliente( p_DNI IN CHAR )
IS
CURSOR c_pedidos_clientes IS
SELECT *
FROM Pedidos_venta
WHERE DNI_Cliente = p_DNI;
BEGIN
DBMS_OUTPUT.PUT_LINE('test');
FOR fila IN c_pedidos_clientes LOOP
DBMS_OUTPUT.PUT_LINE(fila.OID_Pedido_venta||' '||fila.precio);
END LOOP;
END Ventas_cliente;
When I type EXECUTE Ventas_(88441020);
Oracle returns PL/SQL procedure succesfully completed
. The great problem is that it'd return 'test'. Why does not Oracle return 'test'?
Upvotes: 0
Views: 234
Reputation: 52853
You need to enable printing to stdout.
In SQL*Plus the simplest way of doing this is to use serveroutput:
set serveroutput on
Upvotes: 1