on cp_进货单
after update
as
update cp_进货表 set cp_jhb_等级=(select distinct(cp_scdhb_编号) from cp_进货表
left outer join cp_生产定货表 on cp_进货表.cp_jhb_生产定货表系编=cp_生产定货表.cp_scdhb_系统编号 where cp_jhb_系统编号=ident_current('cp_进货表') ) where cp_jhb_系统编号=ident_current('cp_进货表')
go
--当进货表中更新时,更新当前记录的某一列值
评论