PRB: ORDER BY Field in Result Set Without Being in Field ListID: Q143249 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSWhen using the ORDER BY clause of a SQL SELECT statement, you must include the the ORDER BY field in the field list. If the ORDER BY field is not included in the field list, it is added by FoxPro without an error.
STATUSThis behavior is by design. It is clearly documented in the Language Reference and help file that the ORDER BY field must be in the field list. The following quote is from the help file under the SELECT SQL topic:
MORE INFORMATION
Steps to Reproduce BehaviorEnter the following command in the Command Window:
Notice that both last_name and emp_id are in the cursor even though the
last_name field was the only field in the field list.
Additional reference words: 3.00 3.00b VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgSql
|
Last Reviewed: January 31, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |