I have the following T-SQL if statement:
if @changeType = 'ChangeFrom'
begin
print 'yep'
end
else
begin
print 'nope'
end
If @changeType = 'ChangeFrom', I get yep. If @changeType = 'ChangeTo', I get nope. If @changeType ='ChangeFromfsjkfh', I get yep! What is happening there?
source
share