A和Y是什么意思?
create procedure GetInspected
@ckyear int=null,
@ckmonth int=null,
@vendor varchar(30)=null,
@flag char(1)=null
as
if(@flag='A')
begin
select item=count(*) from InGoods where vendor=@vendor
and CKYEAR=@ckyear and CKMONTH=@ckmonth
return
end
if(@flag='Y')
begin
select item=count(*) from InGoods where vendor=@vendor
and CKYEAR=@ckyear and CKMONTH=@ckmonth and STATUS='OK'
return
end
go
if(@flag='A') 和if(@flag='表示什么意思?在此先谢了')