Viewing post 1 (of 1 total)
Hi Lina,
You can use case when statement for your reqirment.
declare @parm smallint
set @parm =10
select * from table1 where id = case @parm when null then null else @parm end
thanks
sahu
May 11, 2005 at 2:04 am
#557961