62,266
社区成员
发帖
与我相关
我的任务
分享create proc Login
(
@uname varchar(50),
@pwd varchar(30)
)
declare @count int
set @count = (select count(1) from table where username=@uname and password=@pwd)
if(@count>0)
begin
update table set logincount=logincount+1 where username=@uname
return 1
end
else
return -1
if (dr.HasRows)
{
dr.Close();
sql = "update tb set num=num+1";
com.CommandText=sql;
com.ExecuteNonQuery();
Response.Write("dengluchenggong");
}