Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select RECNO() puzzler
Message
De
14/08/1998 16:36:49
 
 
À
14/08/1998 16:28:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126709
Message ID:
00127032
Vues:
33
>RECNO() is not reliable when SELECTing from multiple tables. This is documented in Help.
>
>Craig,
>
>Actually I looked through the help documentation, the M$/KB and some printed references I have, but saw nothing about the results of a RECNO() when selected from multiple tables. Do you remember where you saw the reference.?
>
>regards,

From the "SELECT - SQL" help:

Important Keep the following information in mind when creating join conditions:

· If you include two tables in a query and don’t specify a join condition, every record in the first table is joined with every record in the second table as long as the filter conditions are met. Such a query can produce lengthy results.
· Be careful when using, in join conditions, functions such as DELETED( ), EOF( ), FOUND( ), RECCOUNT( ), and RECNO( ), which support an optional alias or work area. Including an alias or work area in these functions might yield unexpected results. SELECT doesn’t use your work areas; it performs the equivalent of USE ... AGAIN. Single-table queries that use these functions without an optional alias or work area will return proper results. However, multiple-table queries that use these functions — even without an optional alias or work area — might return unexpected results.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform