沒有人呀,那我說老問題:
有兩主表明細表,以 no 相關連,當刪除主表一條記錄(如no='001')后則用觸發器刪除明細表
中所有單號為 001的記錄,請問這個觸發器如何寫? (針對 SqlServer7.0)
這個不行可能是我記錯了)
Create Trigger masterdel on [master]
for delete
as
delete details from details where details.no=deleted.no
我已解決了,這個問題到此接束.這個分呢,只好給我自已了
Create Trigger masterdel on [master]
for delete
as
delete from details where no=(select no from deleted) 即可
奇怪,版主,分怎么不能回給自已?