27,580
社区成员
发帖
与我相关
我的任务
分享
create procedure proc_checklogin(@name varchar(32), @pwd varchar(32))
as begin
select @password=password from login where name=@name
if @password is null
return -1 -- not exists the name
if @pwd!=@password
return -2 -- the password is not correct
return 0
end