17,082
社区成员
发帖
与我相关
我的任务
分享
if inserting then
select count(*) into i from table_a A where substr(A.b,0,length(:new.b))=:new.b;
if i=0 then
insert into ....
value....
else
i=i+1;
:new.b:=:new.b||'-'||i;
insert into....
value....
end if;