Details about a dynamic temp-table in a prepared state
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The following example shows multiple dynamic temp-tables in a prepared state. The temp
tables, tt1 and tt2, are prepared in the code just before
the RUN STORED-PROC statement is called and the temp-tables are passed. The
temp-table definition is considered prepared because of the explicit inclusion of each field
name and associated data type.
Multiple temp-tables in a prepared state
|
In the dynamic temp-table example above, note that the temp-table definitions must match
the result set that the send-sql-statement returns. For example, the number
of fields and the data type of each field in the result must have a corresponding field
defined in the temp-table that will receive the result set. No mapping exists between the
result set and the temp-table. Therefore, the first field defined in the temp-table
corresponds to the first column of the result set and so forth.