Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP relationships and NULLS allowed
Message
De
03/11/1998 14:04:18
 
 
À
03/11/1998 13:52:03
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00153763
Message ID:
00154055
Vues:
21
<snip>

OK, let's form the question another way.

How would I create a VFP database relationship with the following criteria:

Case table has primary key column of Case_ID
InvHead table has primary key column of InvHead_ID
InvLine table has primary key column of InvLine_ID
InvLine table has foreign key of InvHead_ID with parent table being InvHead
InvLine table has foreign key of Case_ID with parent table being Case

InvLine.InvHead_ID column allows NULLs.
InvLine.Case_ID column allows NULLs.

InvLine may have no parent InvHead
InvLine may have no parent Case
InvLine may have both a parent Case and parent InvHead

When I create this relationship in Oracle or SQLServer it behaves just fine. The VFP Trigger code, however, if "restrict" insert rule is used, requires non-null values in foreign key column.

If I use "ignore" that seems too loose in that upon insert, any value could be used for the foreign key.

Jeff.
------------------------------
Jeff King
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform