February 11, 2011 at 3:09 am
I HAVE QUERY REGARDING DELETE
THERE ARE TWO TABLES
T1 AND T2
I WANT DELETE PARTICULAR DATA FROM TABLE 1 SAY NAME . TABLE 2 IS REFERS TO TABLE 1 WITH SOME FOREIGN KEY CONSTRAINT.
HOW CAN I GO AHEAD. CAN ANY BODY GIVE ME CLUE HOW IT IS DONE AND IF POSSIBLE PLEASE SEND ME SAMPLE CODE
THANKS
PRAVEEN
February 11, 2011 at 3:27 am
Is there any predefined plan about what you want to do with Table2 rows which are linking to deleted row from Table1. Do you want these rows in Table2 be deleted or updated?
February 11, 2011 at 3:35 am
YES I WANT TO DELETE OR UPDATE ROWS FROM TABLE 2 ALSO
THANKS
February 11, 2011 at 3:44 am
If you are happy to delete rows in both the table, then you can go with cascading delete.
February 13, 2011 at 4:59 am
IF you could send me sample script would appreciate that.(cascade delete)
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply