Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RECNO() and sql select
Message
De
24/11/2006 05:48:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
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:
01172228
Vues:
15
Kevin,

the use of RECNO() and anything bound to ALIAS() is not recommended in SELECT SQL. But you can trick it
Add an extra column to your table, fill with the RECNO() and use this as as temp key
USE YourTable exclusive
ALTER TABLE YourTable ADD COLUMN iTempKey I

REPLACE;
iTempKey WITH RECNO()

*do your work

ALTER TABLE YourTable DROP COLUMN
HTH
Agnes
>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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform