if exists(select top 1 UserName from [dbo].[LJS_Test_User] where UserName=@UserName)
begin
raiserror('用户名重复,不能添加!', 16, 1) ;
return;
end

  

04-28 11:23