
April 21st, 2005, 09:34 AM
|
 |
Muhhnnn !!
|
|
|
|
|
Nested statements and cursor.
hi,
I was wondering how Oracle handle nested query and cursors.
Take as exmple the following query:
Code:
Select
id,
extract_additional_data(id)
From
TableA
extract_additional_data(id) being a stored procedure which open 1 cursor to grab some additional data.
If Table A contains 10 items, How many cursor will I open ?
1 (Main query) + 10 (A query for each nested stroed proc call)
OR
1 (Main Query) + 1 (Nested call to stored procedure. 10 calls sharing the same cursor)
Thanks.
|