if exists(select Userid from pro_UserInfo where UserName=@UserName) select Userid from pro_UserInfo where UserName=@UserName else
( @UserName varchar(50) out, @UserPassWord varchar(50) ) AS if exists(select Userid from pro_UserInfo where UserName=@UserName) return else return null这样写对吗能返回我查询的UserName值吧
select Userid from pro_UserInfo where UserName=@UserName
else
@UserName varchar(50) out,
@UserPassWord varchar(50)
)
AS
if exists(select Userid from pro_UserInfo where UserName=@UserName)
return
else
return null这样写对吗能返回我查询的UserName值吧