Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't do a simple REPLACE command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00305973
Message ID:
00308312
Vues:
24
Elgin,

Here's one suggestion that could be used. Assuming the table with dups is named Master.
USE Master ORDER PrimaryKeyIndex IN 0 AGAIN ALIAS Master

SELECT * FROM Dups ;
 ORDER BY TheExpressionThatYouWantToFindDupsOf ;
  INTO CURSOR Dups
SELECT Dups
SCAN

  * Check this record against the last record

   * If this is a dup
         * SEEK the Dups.PK in Master
         * Increment the Master table field
ENDSCAN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform