Try OpenEdge Now
skip to main content
DataServer for Oracle
RDBMS Stored Procedure Details : Interfacing with RDBMS stored procedures : Loading a result set into a temp-table : Using a temp-table handle with an unprepared dynamic temp-table
 
Using a temp-table handle with an unprepared dynamic temp-table
When a temp-table handle points to an unprepared dynamic temp-table, the Oracle Server DataServer defines the temp-table schema in the form of the result sets record structure which is passed back to the DataServer from the foreign data source. The data types defined for the temp-table schema are determined based on the default data type mapping that exists between the SQL data type and its equivalent ABL default data type. Once the temp-table schema is dynamically established by the DataServer, the result set begins to populate it.
Recognize that there is the possibility of a small performance price to be paid when you build dynamic temp-tables. However, considering the database independence that this technique affords over building static temp-tables, you might consider the price of dynamically built temp-tables to be a small, reasonable one.