Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records - how not to impact relationships
Message
De
17/05/2006 16:17:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deleting records - how not to impact relationships
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01122987
Message ID:
01122987
Vues:
65
Hi:

I have two tables, one that holds some customer records, and another that holds their tasks. they are related by the customer id.

i do not allow others with my program to delete records. my major concern is how this affects the relationship between the two tables. if someone enters a new customer (say customer #1000), then enters a task for this customer, and then decides to delete the customer record, if a new customer gets entered it would have the customer #1000 and would now have the previous customer's task.

do i simply not understand what autoincrementing fields do? if someone deletes a record with customer #1000, would the next customer get #1001? Or, when programmers allow deletion of records, do they just have it marked for deletion but not actually deleted, so the customer # is still there?

Thanks!

Paul
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform