关于存储过程语法的问题,答对了即刻给分。
我写了如下一存储过程,但不知道错在什么地方,
create proc base_tj_destroy
@type int,@name char(20),@starttime datetime,@endtime datetime
as
case @type of
0: begin
select * from change
where (part='固定设备') and (destroy_date>=@starttime)
and (destroy_date<=@endtime)
end
1: begin
select * from change
where (part='固定设备')and(destroy_date>=@starttime)
and (destroy_date<=@endtime) and(usedept_num=@name)
end
2: begin
select * from change
where (part='固定设备')and(destroy_date>=@starttime)
and (destroy_date<=@endtime) and(borrow_people=@name)
end
end
不知道是不是在存储过程中不能用case语句,但我该用if语句来做判断,似乎也不行。请高手指点...
create proc base_tj_destroy
@type int,@name char(20),@starttime datetime,@endtime datetime
as
case @type of
0: begin
select * from change
where (part='固定设备') and (destroy_date>=@starttime)
and (destroy_date<=@endtime)
end
1: begin
select * from change
where (part='固定设备')and(destroy_date>=@starttime)
and (destroy_date<=@endtime) and(usedept_num=@name)
end
2: begin
select * from change
where (part='固定设备')and(destroy_date>=@starttime)
and (destroy_date<=@endtime) and(borrow_people=@name)
end
end
不知道是不是在存储过程中不能用case语句,但我该用if语句来做判断,似乎也不行。请高手指点...
...全文
相关推荐
卡尔曼滤波—以自由落体为例
以自由落体简单事例为例,利用卡尔曼滤波实现了对观测资料的同化。以自由落体简单事例为例,利用卡尔曼滤波实现了对观测资料的同化。以自由落体简单事例为例,利用卡尔曼滤波实现了对观测资料的同化。
kalman滤波在自由落体中的目标跟踪应用_目标跟踪_自由落体;目标跟踪;卡尔曼滤波_源码
卡尔曼滤波在自由落体运动目标跟踪中的应用
卡尔曼滤波用于自由落体运动目标跟踪问题
卡尔曼滤波用于自由落体运动目标跟踪问题;
matlab算法源码卡尔曼滤波的自由落体运动目标跟踪
matlab算法源码卡尔曼滤波的自由落体运动目标跟踪MATLAB实现提取方式是百度网盘分享地址
卡尔曼滤波用于自由落体运动目标跟踪问题,MATLAB程序
卡尔曼滤波用于自由落体运动目标跟踪问题,MATLAB程序,二维


