标签:
use Student create table UserLogin ( UserName varchar(50) not null, UserPassword varchar(50) not null ) alter procedure sp_Login @uid varchar(50), @pwd varchar(50), @result bit output as begin declare @count int set @count=(select count(*) from UserLogin where UserName=@uid and UserPassword=@pwd) if @count>1 begin set @result=1 end else begin set @result=0 end end declare @r bit exec sp_Login ‘ggg‘,‘ggg‘,@result=@r output print @r
标签:
原文地址:http://www.cnblogs.com/772933011qq/p/4534560.html