View previous topic :: View next topic
|
Author |
Message |
Keanehelp
New User
Joined: 27 May 2008 Posts: 71 Location: USA, CA.
|
|
|
|
Hi,
I have a Stored Procedure AAA .
SP AAAA calls a subroutine BBB.
Subroutine BBB has a global temporary table, which gets inserted when BBB is called.
I want to read this table from a cursor in AAA.
I am not sure How I am going to do this, any suggestions? |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi Nitin,
By defination of GTT that is not possible, i think.
Quote: |
DECLARE GLOBAL TEMPORARY TABLE statement does not put a description of the table in catalog table SYSTABLES. The table description is not persistent beyond the life of the application process that issued
the DECLARE statement and the description is known only to that
application process. Thus, each application process could have its
own possibly unique description of the same table. |
Try Goooooooogling "db2 stored procedure return resultset"
Thanks,
Sushanth |
|
Back to top |
|
|
|