create trigger tab1_updage on tab1
for update
as set nocount on
if update(col1="2")
begin
insert into tab2(col2) values (select HOST_NAME())
end
是这样的,曾经用过类似的。
create trigger tab1_updage on tab1
for update
as set nocount on
if update(col1="2")
begin
insert into tab2(col2) values (select HOST_NAME())
end
看了网上的信息不知道这样写行不行?现在又没在客户那里,没办法测试