日期:2014-05-17 浏览次数:20763 次
create proc checkUser
@uname varchar(50),
@pwd varchar(50),
@flag int output
as
declare @temppwd varchar(50)
select @temppwd=[password] from pH_BBS_User where username=@uname
if @temppwd is null
set @flag=1
else if @temppwd=@pwd
set @flag=2
else
set @flag=3