Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RECNO() and sql select
Message
De
24/11/2006 08:45:52
 
 
À
24/11/2006 04:05:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01172207
Message ID:
01172254
Vues:
15
>Hi
>
>When you use recno() in select statements, is it reliable?
>
>In some old Fox2.6 apps we have duplicate keys and I need to differentiate between them.
>

It's reliable in queries involving a single table, as long as you don't put the alias inside the function call. It's not reliable in a multi-table query.

Generally, the best solution is to use one query (or a derived table in a larger query) to add the recno to the original data, and then another query (or a containing query) to pull the data you need including the recno into the result.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform