All pastes #941740 Raw Edit

tag

public sql v1 · immutable
·published 2008-03-13 22:14 UTC
rendered paste body
CREATE OR REPLACE FUNCTION TEST_SUBSELECT    (i_firstname in varchar)RETURN types.cursorTypeIS    o_cursor types.cursorType;BEGIN    OPEN o_cursor FOR    SELECT * FROM party WHERE firstname LIKE '%' || i_firstname || '%';        return o_cursor;END; 12  /Function created.SQL> select * from TABLE(test_subselect('foo'));select * from TABLE(test_subselect('foo'))              *ERROR at line 1:ORA-22905: cannot access rows from a non-nested table item