createtrigger tgr_a_updateon afor updateasdeclare @oldName varchar(50),@id varchar(20)select @oldName = 密码,@id=id from deletedupdate b set 密码=@oldName where id=@id