create trigger tri2_pub_resource
before update
on pub_resourcetype
for each row
begin
update Pub_Resource b set b.TypeID=:new.TypeID
where b.TypeID=:old.TypeID;
end;
update Pub_ResourceType a set a.TypeID='111' where a.TypeID='PUB001';
before update
on pub_resourcetype
for each row
begin
update Pub_Resource b set b.TypeID=:new.TypeID
where b.TypeID=:old.TypeID;
end;
update Pub_ResourceType a set a.TypeID='111' where a.TypeID='PUB001';