I am trying to generate an SP in oracle which returns a select of a column.
Currently
CREATE OR REPLACE PROCEDURE get_usuario(idUser IN USUARIO.ID%TYPE,
O_EMAIL OUT USUARIO.EMAIL%TYPE)
AS
BEGIN
SELECT EMAIL
INTO O_EMAIL
FROM USUARIO WHERE ID = idUser;
END get_usuario; -- Procedure
The problem is that O_EMAIL
will only be loaded with 1 data, I need to return the full select% of email