Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RECNO() and sql select
Message
De
24/11/2006 06:34:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
01172232
Vues:
22
>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.
>
>Thanks
>Kev

Kevin,
There is a high level of reliability but not enough to cover all cases (even works with joins provided you really know what you're doing but we are not always carefull in coding to remember slight nuances - so accept unreliable if used with joins).
You can still have your recno() from those tables if you use multiple SQL. ie:

select recno() as t1recno, * from table1 into cursor crs1 nofilter
select recno() as t2recno, * from table2 into cursor crs2 nofilter
* now work with cr1,crs2

However you're saying "keys" and you might not need recno() at all.
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