Progress
Language Reference
CREATE-LIKE( ) Method
Copies the field definitions from the specified source table and establishes the default or specified source indexes.
This method cannot be called once any other definitional method has been called unless CLEAR( ) is called first.
Return Type: LOGICAL Applies To: Temp-table Object Handle
source-table-hndl-exp
An expression that evaluates to a table handle from which to copy the field definitions and, optionally, the indexes if source-index-name-exp is not specified.
source-table-name-exp
An expression that evaluates to a table name from which to copy the field definitions and, optionally, the indexes if source-index-name-exp is not specified.
source-index-name-exp
A character expression giving an index to be copied from the source table. If this option is specified, only this single index is copied from the source table.
The following example fragment adds all field definitions from the customer table to the temp-table, but only adds the name index:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |