Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display RECNO() from SELECT-SQL
Message
De
12/02/2000 16:32:50
 
 
À
12/02/2000 15:24:50
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00331332
Message ID:
00331388
Vues:
13
>>Terry,
>>
>>This is off-the-wall and I haven't tested it, but what about this:
>>
>>SELECT RECNO('invoice') AS invrec, a.fname, a.lname, b.invoice FROM Customer a, Invoice b WHERE a.num = b.num INTO CURSOR lcTest
>>
>>Note the change to how RECNO() is being used.
>>
>>
>
>John/Mike:
>
>I'm surprised at you guys! < BG > You know you can't use an alias name in a SQL SELECT statement for RECNO(). It's clearly stated in the docs.
>
>John, your solution to do it in two parts will work.

Yep, RECNO() is not reliable in situations involving morethan asingletable. If it's needed, pull it in as a field as a separate step (it often pays to perform the WHERE filter segments that operate the single table in a Rushmore-optimizable fashion in the initial step) and then use the result with RECNO() embedded as a field in later steps.

If you are going to need the indexes for later use, COPY TO...WITH PRODUCTION maybe worth considering.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform