<<  < 2011 - 12 >  >>
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31




alter proc proCheckPass
@uid char(10),
@pwd char(10),
@count char(10) output
as
set @count = dbo.fnCheckPass(@uid, @pwd)

declare @count int
exec proCheckPass '001', '666666', @count output
print @count

*** count(*) from T_User where [user_id] = '001' and [user_pwd] = '666666'

CREATE FUNCTION fnCheckPass (@uid char(10), @pwd char(10))
RETURNS int
AS
begin
RETURN (*** count(*) from T_User where [user_id] = @uid and [user_pwd] = @pwd)
end

发表评论:
天涯博客欢迎您!