sql server - Use like in T-SQl to search for words separated by an unknown number of spaces -


i have query:

select * table column '%firstword[something]secondword[something]thirdword%'

what replace [something] match unknown number of spaces?

edited add: % not work matches character, not spaces.

perhaps optimistically assuming "unknown number" includes zero.

select *  table  replace(column_name,' ','') '%firstwordsecondwordthirdword%' 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -