《Database System Concepts Course Introduction》ch04.pptVIP

  • 9
  • 0
  • 约2.92万字
  • 约 62页
  • 2016-09-20 发布于浙江
  • 举报

《Database System Concepts Course Introduction》ch04.ppt

* * Triggers in MS-SQLServer Syntax create trigger overdraft-trigger on account for update as if inserted.balance 0 begin insert into borrower (select customer-name,account-number from depositor, inserted where inserted.account-number = depositor.account-number) insert into loan values (inserted.account-number, inserted.branch-name, – inserted.balance) update account set balance = 0 from account, inserted where account.account-number = inserted.account-number end When Not

文档评论(0)

1亿VIP精品文档

相关文档