Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating records in FoxPro tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00565010
Message ID:
00565099
Vues:
23
>Say you have a table xyz with a an id field named id type char.
>USE xyz
>RECALL ALL
>INDEX ON Id TAG Id UNIQUE
>
>SET ORDER TO Id
>DELETE ALL
>
>SET ORDER TO
>
>BROWSE FOR DELETED()
< SNIP >

The code above would leave only duplicates of records in the table.

Here's the code according to May 1997 article in FoxTolk 'A "UNIQUE" Approach to De-duping in FoxPro'
SET DELETE OFF
USE xyz EXCLUSIVE
DELETE ALL
INDEX ON Id TAG Id UNIQUE
SET ORDER TO Id
RECALL ALL
SET ORDER TO
SET DELETE ON
See Message #565094 for limitations of this method
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform