Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Record number
Message
De
19/01/2000 09:52:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/01/2000 09:41:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00319851
Message ID:
00319860
Vues:
8
>I have a parent table and a child table, I want to get a cursor using a SELECT command containing field1 from parent table and field1 from child table plus the record number for each child record found.
>
>Any suggestions? Thank you in advance.


If SQL has more than one table than recno() is not reliable. As a workaround you could do this :
luField1 = parent.field1
luPKvalue = parent.PKfield

select luField1 as ParF1,recno() as rcno, * from Child ;
 where Child.LinkField = luPKvalue ;
 into cursor myCursor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform