I'm new to Oracle and trying to return a simple select into my calling application.
create or replace PROCEDURE testSelect
(
column1 OUT table.column1%TYPE,
column2 OUT table.column2%TYPE
)
IS
BEGIN
SELECT column1, column2
INTO column1, column2
FROM table
EXCEPTION
WHEN OTHERS THEN RAISE;
END testSelect;
This compiles but when I try to execute the proc "EXEC testSelect ();", I get the following message: "wrong number or types of arguments in call to".
Thanks for your help and time.