DECLARE @Keyword NVARCHAR(2000) = N'hài hước'
SELECT *
FROM dbo.tbl_Article a
WHERE a.Title LIKE N'%' + @Keyword + '%'
This's happen because there is a newline at the end of the label, so
this is solution:
SELECT *
FROM dbo.tbl_Article a
WHERE REPLACE(REPLACE(a.Title, CHAR(10), ''), CHAR(13), '') LIKE N'%' + @Keyword + '%'Or you can update Title column:
UPDATE [page] Set [label] = REPLACE(REPLACE([Title], CHAR(10), ''), CHAR(13), '')
|