Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in SQL by (40.4k points)

How do I do this?

For example, if my column is "cats, dogs, birds" and I want to get any rows where a column contains cats?

1 Answer

0 votes
by (40.4k points)

Try using LIKE this way:

SELECT *

  FROM TABLE

 WHERE column LIKE '%cats%'  --case-insensitive

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 26, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
0 votes
1 answer
asked Jan 5, 2021 in SQL by Appu (6.1k points)
0 votes
1 answer
asked Dec 12, 2020 in SQL by Appu (6.1k points)

Browse Categories

...