I wrote a query
SELECT * FROM Users WHERE UserName = 'admin '
by mistaken typing. But I found that the result is as the same as
SELECT * FROM Users WHERE UserName = 'admin'
It seems that the empty space at the end is ignored by SQL Server automatically.
Can anybody tell me why?
FYI, the column UserName
is of type nvarchar(MAX)
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…