Home Forums Article Discussions Article Discussions by Author Discuss content posted by Tom Thomson LIKE RE: LIKE
Pradyothana Shastry
SSCertifiable
Points: 5211
More actions
June 24, 2010 at 4:25 am
#1184415
Now this will work
declare @a varchar(16)
set @a ='a '
declare @b-2 varchar(16)
set @b-2 ='a'
if @a = @b-2 and @a like @b-2 and @b-2 not like @a
print 'zzz'