Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select RECNO() puzzler
Message
De
19/08/1998 09:35:06
 
 
À
16/08/1998 06:01:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126709
Message ID:
00128088
Vues:
35
Of course it works that way. The others have posted the theory here, so I won't repeat it. Just a shorthand workaround:


SELECT *, RECNO() AS CustRecNO;
FROM customer Cust;
WHERE Cust.custid = "001" ;
INTO Cursor Tmp1

SELECT tmp1.*, < ord.somefield(s) >;
FROM Tmp1 Cust, order Ord;
WHERE Cust.custid = ord.custid AND ;
Ord.orderid < "999"

Now the final cursor will have the CustRecNo properly filled. Recno() in SQL select works on single table queries only.


Dragan,

Thanks. Like all good explanations, the answer is obvious when explained well.

Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform