The title is very descriptive i think... My scenario is the next. I need to put the result of a result set (for example a result set with 6 columns and variable rows) from a stored procedure in some temporary table to make some operations over this new table. I find some examples in the web but nothing in DB2... The big problem is how to populate that new table with the restult set of a called stored procedure
相关问题
- What is the best way to cache a table from a (SQL)
- What is the best way to handle BOOLEAN values in D
- SQL1032N No start database manager command was iss
- SQL [Conversion to bool]
- Executing a stored procedure using a DbConnection
相关文章
- SQL Server 2008: Joining results of STORED PROCEDU
- Is SaveChanges() Necessary with Function Imports (
- Can I lazy load a navigation property by delegatin
- Escape percentage sign DB2 SQL
- how to pass two parameters to call a stored proced
- DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703 [clo
- INSERT INTO with exec with multiple result sets
- Extra rows being received when matching pairs in S
DECLARE GLOBAL TEMPORARY TABLE probably accomplishes what you want. You can create this type of temporary table inside a stored procedure. It is visible only to the current session and is cleaned up for you when the session ends.