登陆的存储过程中的问题

duanlongk duanlongk 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
不知道怎么回事,当用户登录时存储过程总是调用数据库表中的最后一行记录,也就是说,只有最后一条记录有效,前面的注册用户就没办法登陆,
因为用户名总是停留在最后一行的那个用户名
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
请大虾指点。最好有示例代码哦。
...全文
评论 7
收藏 已收藏
分享
返回顶部
duanlongk
.NET社区 62,272 成员 668,968 内容