Office中国论坛/Access中国论坛
标题:
[求助]帮忙看一下,存储过程代码有错(附图)
[打印本页]
作者:
tz-chf
时间:
2005-11-19 04:30
标题:
[求助]帮忙看一下,存储过程代码有错(附图)
ALTER PROCEDURE procFindOne
(
@condA char(1)=null,
@condB char(1)=null,
@condC char(1)=null,
@amountA varchar(20)=null,
@amountB varchar(20)=null,
@amountC varchar(20)=null
)
AS
SET NOCOUNT ON
declare @strsqlA varchar(255)
declare @strsqlB varchar(255)
declare @strsqlC varchar(255)
declare @strDateFrom char(10)
declare @strDateTo char(10)
if (@condA is not null) and (@amountA is not null)
begin
case @condA
when '6' then set @strDateFrom=@amountA
when '7' then set @strDateTo=@amountA
else set @strsqlA=funGetstr(@condA, @amountA)
end
end
--处理日期
RETURN
[attach]14249[/attach]
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3