I have the following sql
code:
if ('aaa' = 'aAa')
print 'equals'
else
print 'not equals'
And it prints equals
. Why it's this behavior when the strings are not equals?
I have the following sql
code:
if ('aaa' = 'aAa')
print 'equals'
else
print 'not equals'
And it prints equals
. Why it's this behavior when the strings are not equals?
Use collations :
IF 'aaa' COLLATE Latin1_General_CS_AS = 'aAa' COLLATE Latin1_General_CS_AS
print 'equals'
else
print 'not equals'