FIX: Reserved Words Invalid Table Names in FoxPro 2.0 SELECT

ID: Q112308

2.00 MS-DOS kbprg kberrmsg kbbuglist kbfixlist

The information in this article applies to:

SYMPTOMS

Clauses of the FoxPro SQL SELECT command include several reserved words. Examples of reserved words are GROUP, UNION, WHERE, and HAVING. If you create a table using one of these reserved words as the name of the table, (for example, GROUP, which is a common choice for a table name), an SQL SELECT statement that includes a table name that is also a reserved word will produce the following error message:

  Syntax error.

STATUS

Microsoft has confirmed this to be a problem in FoxPro version 2.0 for MS- DOS. This problem was corrected in FoxPro version 2.5 for MS-DOS and FoxPro version 2.5 for Windows.

MORE INFORMATION

In FoxPro version 2.0 for MS-DOS, a reserved word cannot be used in the projection list of the SQL SELECT command. In FoxPro version 2.5, the SQL SELECT command still checks for reserved words but only to end clauses that do not include other syntactic cues.

Additional reference words: FoxDos 2.00 err msg errmsg keyword key word rqbe buglist2.00 fixlist2.50 KBCategory: kbprg kberrmsg kbbuglist kbfixlist KBSubcategory: Solution Type : kbfix

Last Reviewed: October 20, 1997