How to make a morphological search?

Good afternoon.

I have a request:

SELECT * FROM Firm WHERE name LIKE '%' 

Please tell me how to use morphological search with this query in MsSQL 2008?

+4
source share
2 answers
 Declare @find NVarchar(20)='test' SELECT * FROM Firm WHERE name LIKE '%' +@find +'%' OR phone LIKE '%' +@find +'%' 
+1
source

Just run below Query

 SELECT * FROM Firm WHERE name LIKE N'%' -- ^ Magical Code 

SQL Fiddle

0
source

Source: https://habr.com/ru/post/1484618/


All Articles