Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a Primary key.
Message
De
25/01/2000 01:31:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00322044
Message ID:
00322051
Vues:
32
>I am trying to create a primary key for my table out of the following index called "keydex" :
>
> custid+upsino+DTOS(puldat)+STR(sampleno,2)
>

First of all make sure SET DELETE is OFF.

THen use this query to find dupes:

SELECT COUNT(*), custid+upsino+DTOS(puldat)+STR(sampleno,2) FROM MyTable GROUP BY 1 HAVING COUNT(*) > 1
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform