Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referential integrity: restrict, cascade, ignore and CHA
Message
 
 
To
16/11/1999 15:39:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00291533
Message ID:
01000461
Views:
27
>>>Steve Sawyer has new RI code in his book (Effective Techniques for Application Development with Visual FoxPro) that will allow you to change to a different value, but I don't know if it will support NULL.
>>
>>Thanks Craig. I will take a look at it tonight.
>>
>>If Steve is doing something like this, it must be legit.
>
>It's perfectly valid for RI to do what you are asking. The example I like is, you have a salesman and he is assigned to several clients. When the salesman leaves, you can assign his clients to other people or to no one at all (NULL). The VFP RI builder does not take this into account.
>
>Another advantage of Steve's RI code is that it is more compact and efficient than the code generated by VFP's RI builder.

It doesn't seem to support NULLs in the Insert trigger with restrict option.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform