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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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