dbTalk Databases Forums  

Detecting cascaded delete

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Detecting cascaded delete in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bigtoe
 
Posts: n/a

Default Detecting cascaded delete - 03-15-2011 , 04:03 PM






Suppose ChildTable has a foreign key reference to ParentTable with the
constraint ON DELETE CASCADE. Is there any way to distinguish between
the deletion of a row in ChildTable as a result of executing:

DELETE FROM ChildTable WHERE......

and the deletion of a row in ChildTable as a result of a delete
cascaded from ParentTable?

Reply With Quote
  #2  
Old   
Eric
 
Posts: n/a

Default Re: Detecting cascaded delete - 03-25-2011 , 04:56 AM






I've not used this feature, but I wonder if you could use a field on a
record (header or detail) to communicate the source of the event.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.