I am using the below query to search some text in a sentence
the problem is that I just want to fetch special character or the exact keyword.
example: I want public or &public not republic
could u please help
Code:
declare @a nvarchar(100) set @a=N'%[ /\\@\&\*()\-\+\|\>?,\":;/、・¥—&*(-》>?,;“”〉\- ][public]' declare @b nvarchar(50) set @b='public property' select @b where @b like '%' +@a+'%'
example: I want public or &public not republic
could u please help
Comment