Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECNO() and sql select
Message
From
24/11/2006 08:45:52
 
 
To
24/11/2006 04:05:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01172207
Message ID:
01172254
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform