Answers for "sql match any part of string"

SQL
0

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%'
Posted by: Guest on April-19-2020
0

sql where contains part of string

-- To find an exact string
SELECT * FROM [table] WHERE [field] LIKE '%stringtosearchfor%'.
Posted by: Guest on October-14-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language