if exists(select top 1 UserName from [dbo].[LJS_Test_User] where UserName=@UserName)
begin
raiserror('用户名重复,不能添加!', 16, 1) ;
return;
end
if exists(select top 1 UserName from [dbo].[LJS_Test_User] where UserName=@UserName)
begin
raiserror('用户名重复,不能添加!', 16, 1) ;
return;
end
转载于:https://www.cnblogs.com/jasonlai2016/p/10097228.html