触发哭的问题 Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiDB/html/delphi_20061219102436227.html
写一触发器  
  当表1更新时计算total值(number*price)  
  number在表1中,price在表2中  
  应该怎么写呀  
   
  多给意见~多谢

触发哭???????????????????  
   
   
  CREATE   TRIGGER   触发器名  
  on   表1  
  for   (插入   ,修改   删除   根据自己需要)  
   
  update   total   =   number   *   (Select   price   from   table2)   from   inserted

只是大概,根据自己需要改动

都把人触发哭了!

嘻嘻  
   
  不好意思哦,,  
   
  多谢前面两位大哥~~

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-06-29
猜你喜欢
  • 2021-09-04
  • 2021-08-28
  • 2022-12-23
  • 2021-11-04
  • 2021-07-14
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案