ADD-FIELDS-FROM( ) method
Copies the field definitions from the specified source table to a temp-table. It is intended for use when a temp-table represents a join. If it finds fields that are already in the temp-table, it ignores them.
This method cannot be called after TEMP-TABLE-PREPARE( ) has been called unless CLEAR( ) is called first.
Return type: LOGICAL
Applies to: Temp-table object handle
source-buffer-handle-exp
source-table-name-exp
except-list-exp
The following example fragment creates a join temp-table from the Customer and Order tables:
The following fragment creates a temp-table from the Customer table except for the
SalesRep
field:
Note: There is a limit to the number of fields that can be accommodated in a temp-table object. The limit depends on how large the field information (initial value, validate information, help messages, etc.) is, but you should plan on a limit of approximately 1000 fields.This method does not create any indexes. Either indexes must be added specifically through one of the ADD-INDEX methods, or a default index is created.
OpenEdge Release 10.2B
|