Home Forums SQL Server 2008 T-SQL (SS2K8) Why won't this query return data? RE: Why won't this query return data?
subbu1
Hall of Fame
Points: 3281
More actions
October 25, 2012 at 12:15 am
#1552513
plc check below query...
declare @a int=0
declare @t table(id int)
insert into @t(id) values(1),(2),(3)
select @a=ID from @t
select @a first
/******************STMT*******************/
set @a=0
select @a=@a+ID from @t
select @a second