Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GET RID OF DUPLICATES
Message
 
À
28/11/2000 12:19:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00446244
Message ID:
00446275
Vues:
12
One way is to do a select distinct on the table, zap it, then do an append from the select result.
select distinct * from table into cursor cursa
if !used('table')
    use table excl
    zap
    append from dbf('cursa')
else
    use in table
    use table excl
    zap
    append from dbf('cursa')
endif
use in table
use in cursa
Now you have a table with no duplicate records. The next thing is arranging the app to not allow duplicates to be created.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform