The following query returns no results:
select *
from MyTable
where MyVarChar = '99903'
MyVarChar is a varchar(20) not null
column.
The following data is stored in the table (a la 'select *'):
Id MyVarChar
1 99901
2 99902
3 99903
Intriguingly, if I supply '99901' or '99902' in the comparison, I get a result.
I've tried ltrim
and rtrim
on both sides of the comparison with no success.
I'm... confounded. :P Any thoughts?