Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set primary key
Message
De
09/01/2002 04:12:06
 
 
À
09/01/2002 03:57:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00602397
Message ID:
00602399
Vues:
23
>Hi,
>
>I have a table as following:
>Table name: VEHICLE
>FIELDS: batch_num (primary key)
> ve_num (primary key)
> price
> order_date
>
>when I create the table, i encounter a problem is that i cannot set both batch_num and ve_num as primary key. Then I set batch_num is primary, ve_num is candidate. However, i still cannot save the following two records:
>
>batch_num ve_num price order_date
>0000001 b11111 10,000 01/01/2002
>0000001 c11111 11,000 02/02/2002
>
>the error message is: uniqueness of index batch_num is violated. How can I solve the problem. thanks

Your primary key would be batch_num+ve_num

>
>Linda
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform