--如果用户修改用户名则回滚 create trigger UpdateUserName on UserInfo for update as begin if update(UserName) rollback transaction end