Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Problem
Message
 
 
To
19/04/2005 15:47:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006236
Message ID:
01006345
Views:
46
VFP cannot create filtered cursor when query involves more than one table. Basic requirements for filtered cursor:
- Only one table is referenced by query
- WHERE condition is optimisable and can be represented by SET FILTER TO
- Either all fileds from the table are selected or subset of fields can be limited by SET FIELDS command



>Thanks. In fact the VFP help says:
>
>
>NOFILTER creates a cursor that can be used in subsequent queries.
>
>
>So why does this work:
>
>
>SELECT Lotmast.lm_flcode FROM ;
>    it!lotmast ;
>    INNER JOIN it!flckmast ;
>   ON  Lotmast.lm_flcode = Flckmast.fm_flcode ;
>   WHERE SUBSTR(lm_flcode,5,4) >= '2026' ;
>   INTO CURSOR curs1
>
>  SELECT * ;
>  fROM curs1 ;
>  INTO CURSOR curs1a
>
>
>Thanx-
>Yossi
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform