Answers for "sql where part of string"

SQL
14

sql where contains

SELECT * FROM mytable
WHERE column1 LIKE '%word1%'
   OR column1 LIKE '%word2%'
   OR column1 LIKE '%word3%'
Posted by: Guest on January-22-2020
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
0

grab part of a string sql

SELECT SUBSTRING('SQLTutorial.org');
Posted by: Guest on March-18-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language