declare @var varchar(max)
set @var='1'
select @var=vars from ( select '2' as vars) ct where 1=4
select @var
the result is that "select @var equaly select 1"
Hope is a good thing.Maybe the best of things
declare @var varchar(max)
set @var='1'
select @var=vars from ( select '2' as vars) ct where 1=4
select @var
the result is that "select @var equaly select 1"
Hope is a good thing.Maybe the best of things