Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell me which command is used to match any string of at least 3 char in SQL?

1 Answer

0 votes
by (119k points)

We can use LIKE operator to search for any specific pattern in a column. Here is the query to match any string of at least 3 characters in length:

SELECT column_name

FROM table_name

WHERE column_name

LIKE ‘_%_%_’

I recommend this SQL Training course by Intellpaat to learn more about LIKE operator and wildcard characters like ‘%’, ’-‘, ‘^’, ‘[]’.

Related questions

0 votes
1 answer
asked Apr 2, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
asked Oct 20, 2020 in SQL by dev_sk2311 (45k points)
0 votes
4 answers
asked Mar 14, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer

Browse Categories

...