标题:存储过程报错了,怎么改?
取消只看楼主
sweetwly
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2006-1-2
 问题点数:0 回复次数:0 
存储过程报错了,怎么改?
CREATE PROCEDURE dt_1_checkpassword
@username char(25)
@passwd char(25)
AS
declare @shopper int
if exists (select idShopper from shopper where chrUserName=@username )
begin
if exists ( select idShopper from shopper where chrUserName=@username and chrPassword=@passwd )
select idShopper , chrUserName, UserName=case when len(chrShopperName)<5 then
chrUserName
else
chrShopperName
end
from shopper where chrUserName=@username and chrPassword=@passwd
else
select idShopper= -1
end
else
select idShopper= -2
报@passwd附近有语法错误及必须声明变量"@username"错误
请问要怎么改呀

搜索更多相关主题的帖子: blank target where 
2006-04-06 15:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-55541-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.212575 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved