34,576
社区成员
发帖
与我相关
我的任务
分享
if not exists (select 1 from table where number=123456)
begin
insert语句
end
else
begin
return
end
if(select count(1) from tb where [NUMBER]=@NUMBER)<3
insert into tb select @NUMBER,'PASS'
if (select count(*) from table where number=123456)>1
begin
return
end
else
begin
insert语句
end