You receive the "SQL expression too complex" error message if the IN clause includes more than 25 values in FoxPro (103031)
The information in this article applies to:
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
This article was previously published under Q103031 SYMPTOMSThe "SQL expression too complex" error message appears if you have
used 25 or more values in the IN clause of the SELECT-SQL command.
CAUSE
The maximum number of values is 24 that you can include in the IN clause.
Note Microsoft Visual FoxPro 9.0 removes the limit of 24 values in the IN (Value_Set) clause for the WHERE clause. However, the number of values remains subject to the setting of "SYS(3055) - FOR and WHERE Clause Complexity."RESOLUTION
See the "More Information" section for an example of the problem and a workaround.
Modification Type: | Major | Last Reviewed: | 3/10/2005 |
---|
Keywords: | KB103031 kbAudDeveloper |
---|
|