About 76,600 results
Open links in new tab
  1. SQL 'LIKE' query using '%' where the search criteria contains

    May 29, 2012 · I have an SQL query as below. Select * from table where name like '%' + search_criteria + '%' If search_criteria = 'abc', it will return data containing xxxabcxxxx which is …

  2. sql - How do you OR two LIKE statements? - Stack Overflow

    Dec 19, 2016 · The "OR" operator applies to expressions. "LIKE 'str1'" and "LIKE 'str2'" are not valid expressions, since the "LIKE" operator requires both a left hand side and a right hand side.

  3. sql - Equals (=) vs. LIKE - Stack Overflow

    Feb 13, 2009 · When using SQL, are there any benefits of using = in a WHERE clause instead of LIKE? Without any special operators, LIKE and = are the same, right?

  4. How to use LIKE condition in SQL with numeric field?

    In Access database engine SQL syntax, to use the % wildcard character EITHER you must be using ANSI-92 Query Mode OR use the ALIKE keyword in place of the LIKE keyword.

  5. Use of Pipe (Vertical bar) in SQL LIKE operator statements

    May 14, 2025 · However, I would like to know if this can be done in a single string comparison using the LIKE operator. Below is some of the code I used to create a database table with data …

  6. What's the difference between "LIKE" and "=" in SQL?

    Oct 1, 2009 · Equals '=' is just for equality. On the other hand, LIKE supports SQL wildcard matching. So, with LIKE you can do name like '%jones' to get all the names ending in jones. …

  7. Is the LIKE operator case-sensitive with SQL Server?

    Feb 19, 2013 · In the documentation about the LIKE operator, nothing is told about the case-sensitivity of it. Is it? How to enable/disable it? I am querying varchar(n) columns, on an …

  8. sql - how to use LIKE with column name - Stack Overflow

    Normally LIKE statement is used to check the pattern like data. example: select * from table1 where name like 'ar%' My problem is to use one column of table with LIKE statement. …

  9. mysql - how to use a like with a join in sql? - Stack Overflow

    For example, using a Like condition in an Outer Join will keep all records in the first table listed in the join. Using the same condition in the Where clause will implicitly change the join to an …

  10. if statement - SQL IF value LIKE - Stack Overflow

    May 3, 2013 · 3 I’m new to SQL, so apologies for what is probably a menial question. I’m storing staff numbers in a format similar to ‘e01, e02 .. e98, e99’ I have a procedure to input values …