日期:2014-05-18 浏览次数:20435 次
create trigger to_insert on Student instead of insert as begin declare @i int select @i = count(distinct stu_id) from Student if @i <= 30 insert into Student(...) select ... from inserted end go