Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating
Message
De
08/06/2006 18:15:36
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
08/06/2006 11:22:10
Kay Alexander
Pennsylvania Farm Bureau
Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01127861
Message ID:
01127967
Vues:
9
>I am creating a cursor with keyID = 'key_value' from joining several SQL tables and each SQL table has keyID and keyIncrement as fields. When the cursor is created, it has several duplicated keyIncrement records for the given key_value. Then, I create an index as "INDEX ON STR(keyID)+STR(keyIncrement) TAG idx_MAD OF cdxMembers UNIQUE" to eliminate the duplicate increment numbers. ....

Hi Kay,

Exactly what SQL are you using? How are the keys being duplicated? Does some table have several matching rows that causes the duplicates in the result set? If there are several matchine key combinations, what about the rest of the fields? If they differ, how do you know which values you want to use/

Using a Fox UNIQUE index has always been a bad idea.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform