insert into ... select from table ... returning bulk collect into
Hello all,
Trying to execute the following fails with error: SQL command not properly ended. A quick search in the net suggests that this pattern is not supported. However, from the documentation about the returning clause, one may think that this is supported, unless I've misunderstood something.
INSERT INTO emp
SELECT id, name FROM TABLE(l_col)
RETURNING id BULK COLLECT INTO id_list;
Thanks,
wf
[http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/returning_clause.gif]