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)
.