Answers for "sql where substring in string"

SQL
6

sql substring

-- substr(string, start, [, length ])
SELECT substr('Hello World', 1, 3) ;      -- Hel
SELECT substr('Hello World', 4, 5) ;      -- lo Wo
SELECT substr('Hello World', 4);          -- lo World
SELECT substr('Hello World', -3);         -- rld
Posted by: Guest on May-02-2021
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 where substring in string"

Code answers related to "SQL"

Browse Popular Code Answers by Language