Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

sql-like

List of special characters for SQL LIKE clause

What is the complete list of all special characters for a SQL (I’m interested in SQL Server but other’s would be good too) LIKE clause? E.g. SQL Server: % _ [specifier] E.g. [a-z] [^specifier] ESCAPE clause E.g. %30!%%’ ESCAPE ‘!’ will evaluate 30% as true ‘ characters need to be escaped with ‘ E.g. they’re … Read more

Categories SQL Tags special-characters, sql, sql-like

SQL- Ignore case while searching for a string

Use something like this – or

Categories sql server Tags case-insensitive, ignore-case, sql, sql-like, sql-server

How can I search (case-insensitive) in a column using LIKE wildcard?

I looked around some and didn’t find what I was after so here goes. This works fine, but not if the tree is named Elm or ELM etc… How do I make SQL case insensitive for this wild-card search? I’m using MySQL 5 and Apache.

Categories MySQL Tags case-insensitive, mysql, sql, sql-like

How to query MongoDB with “like”

That would have to be: Or, similar: You’re looking for something that contains “m” somewhere (SQL’s ‘%‘ operator is equivalent to regular expressions’ ‘.*‘), not something that has “m” anchored to the beginning of the string. Note: MongoDB uses regular expressions which are more powerful than “LIKE” in SQL. With regular expressions you can create any … Read more

Categories SQL Tags mongodb, mongodb-query, sql, sql-like

MySQL starts with searching issue

Underscore is a wildcard for a single character. You will need to change your SQL to something like: Or you can escape the underscore

Categories SQL Tags mysql, sql, sql-like

How do you force mysql LIKE to be case sensitive?

201 Use LIKE BINARY:

Categories SQL Tags case-sensitive, mysql, sql, sql-like

Combining “LIKE” and “IN” for SQL Server

Effectively, the IN statement creates a series of OR statements… so Is effectively And sadly, that is the route you’ll have to take with your LIKE statements

Categories SQL Tags sql, sql-like

LIKE vs CONTAINS on SQL Server

The second (assuming you means CONTAINS, and actually put it in a valid query) should be faster, because it can use some form of index (in this case, a full text index). Of course, this form of query is only available if the column is in a full text index. If it isn’t, then only the first form is available. … Read more

Categories SQL Tags contains, performance, sql-like, sql-server

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress