Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theoretical issue - how do you handle this?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01001223
Message ID:
01001231
Vues:
18
Nadya allow me to add my experiences.

If you have a child table related by a foreign key to a parent table, then there *must* be some restriction on how data is inserted, changed, or deleted in these tables.

Well, there isn't. After you've designed and implemented a few dozen real world databases, you might discover that things don't fall nicely into your textbook definitions. This is why RDBMSs provide the flexibility to define foreign keys with and without constraint rules.

I know for lookup table, most of real world databases uses Update (Restricted), Delete (Restricted or Ignore {Sometimes you *do* want the deletion of the parent record to leave orphaned child records}) and Insert (Ignore, don’t care about value, because Sometimes you *do* want to insert child records that are not related to an existing parent record, or everything enter by selecting value from lookup table).


Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform