当前位置: 代码迷 >> DB2 >> 请教,db2中是否支持字段级触发。多谢各位
  详细解决方案

请教,db2中是否支持字段级触发。多谢各位

热度:9060   发布时间:2013-02-26 00:00:00.0
请问,db2中是否支持字段级触发。谢谢各位
类似sqlserver 中的
if updating('col') then
  ---
else if updating('col1') then
  ---
end if ;

------解决方案--------------------------------------------------------
当然有了,

create trigger trig-name before update of column-name……
------解决方案--------------------------------------------------------
大字段是不能触发的
  相关解决方案