Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicated records
Message
 
 
À
05/07/2007 05:05:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01237825
Message ID:
01237863
Vues:
20
>i try ,but not works...bad try and thinking
>
>CLOSE all
>USE tty in 0
>INDEX on ncli TO gg
>Select tty.telno,tty.typ from tty group by tty.telno,tty.typ having count(*)>1 READWRITE
>replace typ with 1
>
>
CLOSE all
USE tty in 0
INDEX on ncli TO gg
Select tty.telno,tty.typ from tty group by tty.telno,tty.typ ;
having count(*)>1 into cursor DupsOnly

select tty.* from Tty inner join DupsOnly do on tty.telno = do.telno and tty.typ = do.typ into table myNewTableWithAllDuplicates

>replace typ with 1
>
What do you want to do with the duplicates in the original table is not clear. Do you want to replace typ with 1 for all duplicate records?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform