Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (40.7k 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.7k 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)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...