34,875
社区成员
发帖
与我相关
我的任务
分享create trigger t1
on tb1
for insert
as
begin
insert into t2
select id=(select count(*)+1 from t2 where c1=t.c1 and c2=t.c2 and ……),*
from inserted t
endselect (select count(1)+1 from A where c2=a.c2 and c4<a.c4),* into B
from A a