SQL LIKE operator not showing any result when it should
问题 I got a Vehicle table with lots of info but one of the columns being 'Owner' in a MSSQL table But one of the owners i can't select when i use LIKE but can if i use = 'Silkeborg Distributionscenter' is the owner (Yes there is a double space in both the table and the param) So the param is: DECLARE @Owners nvarchar(MAX) = 'Silkeborg Distributionscenter' I tried: SELECT * FROM Vehicle WHERE @Owners = Owner --This gave me all the correct results Then: SELECT * FROM Vehicle WHERE @Owners LIKE