# When using the like condition to search for _ symbols?

To search a string using LIKE , two symbols can be used: the underscore sign _ and the percentage sign % . The underscore sign represents any single unknown character. The percentage sign is used to represent 0, 1 or any unknown sequence of characters.

Bron: [Search character strings using LIKE - OpenClassrooms](https://openclassrooms.com/en/courses/2071486-retrieve-data-using-sql/5759426-search-character-strings-using-like#:~:text=To%20search%20a%20string%20using,any%20unknown%20sequence%20of%20characters.)

Toegevoegd: 2026-01-26
Webpagina: https://1001vragen.nl/vraag/when-using-the-like-condition-to-search-for-symbols

## How to use _ in like statement of SQL?

The SQL _ wildcard is used as a placeholder within the LIKE operator to represent a single character in a text or string search. It's commonly used in SQL for pattern matching to find rows in a database where a particular character at a specific position in a column value matches a specified pattern.

Bron: [SQL _ Wildcard - Syntax, Use Cases, and Examples - Hightouch](https://hightouch.com/sql-dictionary/sql-underscore-wildcard#:~:text=The%20SQL%20_%20wildcard%20is%20used,value%20matches%20a%20specified%20pattern.)

## What does WHERE name like a %' match?

Use '%' to match any number of characters '%' can be used to match any (even zero) number of characters – a number, an alphabet, or a symbol. To find names that end with "z" try the pattern '%z' .

Bron: [SQL LIKE Pattern Matching Tutorial | DataCamp](https://www.datacamp.com/tutorial/sql-like-pattern-matching-tutorial#:~:text=Use%20'%25'%20to%20match%20any,an%20alphabet%2C%20or%20a%20symbol.&text=To%20find%20names%20that%20end,the%20pattern%20'%25z'%20.)

## What are the like symbols in SQL?

The default SQL LIKE wildcard values are '%' and '_' . Some databases may offer additional wildcard characters or variations for more specific pattern-matching needs. For example, SQL Server also has [] and [^] , which work just like in regular expressions.

Bron: [A Complete Guide to the SQL LIKE Operator - DbVisualizer](https://www.dbvis.com/thetable/a-complete-guide-to-the-sql-like-operator/#:~:text=The%20default%20SQL%20LIKE%20wildcard,just%20like%20in%20regular%20expressions.)

## What is the underscore symbol in SQL?

In SQL, when using the LIKE operator to search for a specified pattern in a column, the underscore ( _ ) is a wildcard that matches exactly one character. This is often used for partial matching within text fields.

Bron: [What does the underscore in the database mean? - Tencent Cloud](https://www.tencentcloud.com/techpedia/129228#:~:text=In%20SQL%2C%20when%20using%20the,partial%20matching%20within%20text%20fields.)

## Verwante vragen

- [What does the asterisk (*) symbol in a SELECT statement indicates in SQL?](https://1001vragen.nl/vraag/what-does-the-asterisk-symbol-in-a-select-statement-indicates-in-sql.md)
- [What does the '%' wildcard symbol represent in SQL?](https://1001vragen.nl/vraag/what-does-the-wildcard-symbol-represent-in-sql.md)
- [What is a superscript symbol?](https://1001vragen.nl/vraag/what-is-a-superscript-symbol.md)
- [How to add if condition in SELECT query in Oracle?](https://1001vragen.nl/vraag/how-to-add-if-condition-in-select-query-in-oracle.md)
- [How to use case in SQL with condition?](https://1001vragen.nl/vraag/how-to-use-case-in-sql-with-condition.md)
- [What is the 1 1 condition in SQL?](https://1001vragen.nl/vraag/what-is-the-1-1-condition-in-sql.md)
- [Which SQL keyword is used to combine conditions?](https://1001vragen.nl/vraag/which-sql-keyword-is-used-to-combine-conditions.md)
- [How to add if else condition in SQL query?](https://1001vragen.nl/vraag/how-to-add-if-else-condition-in-sql-query.md)
- [How to CONCATENATE two string variables namely str1 and str2 in Java using another string variable var?](https://1001vragen.nl/vraag/how-to-concatenate-two-string-variables-namely-str1-and-str2-in-java-using-another-string-variable-var.md)
- [What is the purpose of using dbms_output put_line in a pl SQL block?](https://1001vragen.nl/vraag/what-is-the-purpose-of-using-dbms-output-put-line-in-a-pl-sql-block.md)
