sql match any part of string code example
Example 1: sql where part of string match
select * from docs where DOC_NAME like '%virus%spyware%'
-- OR
select * from docs where DOC_NAME like '%virus%' or DOC_NAME like '%spyware%'
Example 2: sql where contains part of string
-- To find an exact string
SELECT * FROM [table] WHERE [field] LIKE '%stringtosearchfor%'.