简单的数据库的触发器
2、建立一个触发器,当删除Teacher表中的教师信息时,如果要删除的教师的职称是副高以上,则将禁止删除此教师。
create trigger tri_teacher1
on teacher for delete
as
if exists (select *from teacher deleted where ttitle like'%教授')
begin
print '禁止删除此教师'
rollback
end
delete teacher values('覃明生','男','1970-1-10 0:00:00','教授','0001',.'3000.0000','1200.0000')///values附近有语法错误,我怎么找也找不出啊