登陆的存储过程中的问题
不知道怎么回事,当用户登录时存储过程总是调用数据库表中的最后一行记录,也就是说,只有最后一条记录有效,前面的注册用户就没办法登陆,
因为用户名总是停留在最后一行的那个用户名
create procedure [dbo].[userlogin]
@username nvarchar(20) output,
@secretcode nvarchar(50) output,
@authority char(3) output
as select @username=dbo.user_table.usrrname,
@secretcode=dbo.user_table.secret_code,
@authority=dbo.user_table.authrity
from dbo.user_table
请大虾指点。最好有示例代码哦。
因为用户名总是停留在最后一行的那个用户名
create procedure [dbo].[userlogin]
@username nvarchar(20) output,
@secretcode nvarchar(50) output,
@authority char(3) output
as select @username=dbo.user_table.usrrname,
@secretcode=dbo.user_table.secret_code,
@authority=dbo.user_table.authrity
from dbo.user_table
请大虾指点。最好有示例代码哦。
...全文


