Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a primary key compound by two or more fie
Message
De
21/05/2001 15:15:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00509511
Message ID:
00509630
Vues:
20
I was trying this one:
ALTER TABLE MyTable ADD PRIMARY KEY Field1 + Field2 + Field3 tag pk
but I get....Operator/operand type mismatch. Field2 is char, but that's not would be trouble, well, I think.

Sorry by my ignorance, if I have this records...
Field1 Field2 Field3
----------------------------
4 5 1
3 1 6

it will be a duplicate key? (i.e. 4+5+1=10 and 3+1+6=10 too!!!)


Thanks a lot!!!
glurrea
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform