By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,514 Members | 1,683 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,514 IT Pros & Developers. It's quick & easy.

probelm with temp table

P: n/a
Hi,

I am creating a temp table within a procedure and inserting some
records based on some conditions. Is there a way I can query the temp
table to see how many records have been inserted when the procedure is
being executed.

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
chettiar wrote:
Hi,

I am creating a temp table within a procedure and inserting some
records based on some conditions. Is there a way I can query the temp
table to see how many records have been inserted when the procedure is
being executed.


SELECT COUNT(*) FROM <temp-table>

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 12 '05 #2

P: n/a
chettiar wrote:
Hi,

I am creating a temp table within a procedure and inserting some
records based on some conditions. Is there a way I can query the temp
table to see how many records have been inserted when the procedure is
being executed.

You mean from the outside? No way. The idea of the temp table is that it
is private to the session.
But if you want to knwo which crooked paths your procedure is taking
have a look at the SQL PL Debugger that comes with the Development
Center, or check out my SQL PL Tracing facility. You can find it by
searcging for "Rielau" at www.ibm.com

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.