| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 579 人关注过本帖
标题:存储过程报错了,怎么改?
取消只看楼主 加入收藏
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
快速回复:存储过程报错了,怎么改?
数据加载中...
 
   



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

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