I'm trying to make an sql function (or procedure) in sql developer and test in at the same sheet. I've got some error message. This is my code:
CREATE or replace function myProc (trace_items_ids IN arrayofnumbers)
RETURN tableof2numbers
is
tr tableof2numbers := tableof2numbers();
BEGIN
select object_id, parent_id
bulk collect into tr
from objects;
return tr;
END;
select * from TABLE(myProc(arrayofnumbers(1,2)))
and I've got an error :
ORA-00955. 00000 - "name is already used by an existing object" Cause:
Action:
How can I test my function?