【【【【【【 存储过程结构问题 libin_ftsafe(子陌红尘)等高人请进 谢谢】】】】】】
噯卟釋手 2004-12-16 04:44:12 我想实现这样的效果 但是有语法错误 呵呵 @type 是存储过程的参数
create proc_test @type varchar(20)
as
begin
if @type = '0'
(if exists(....)
select .....from ... where ...)
if @type = '1'
(if exists(....)
select .....from ... where ...)
if @type = '2'
(if exists(....)
select .....from ... where ...)
end
go