Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. I've been trying to figure out how I can make a query with MySQL that checks if the value (string $haystack) in a certain column contains certain data (string $needle), like this: SELECT * FROM `table` WHERE `column`.contains('{$needle}')

  2. 12 Φεβ 2024 · One effective method to check if a particular string occurs in a MySQL table is by utilizing the SELECT statement along with the LOCATE() function. The LOCATE() function in MySQL is employed to find the position of the first occurrence of a substring within a given string.

  3. 23 Μαρ 2023 · How to Query for Strings in SQL with the WHERE Clause and LIKE Operator. The WHERE clause lets you get only the records that meet a particular condition. The LIKE operator, on the other hand, lets you find a particular pattern in a column. You can combine these two to search for a string or a substring of a string.

  4. 23 Αυγ 2021 · You can use a character class (or character set) to match a group of characters, for example "b[aiu]g" would match any string that contains a b, then one letter between a, i and u, and then a g, such as "bug", "big", "bag", but also "cabbage", "ambigous", "ladybug", and so on.

  5. 12 Μαΐ 2024 · We can use the LIKE operator to perform a wildcard search on the columns: SELECT * FROM Product WHERE description LIKE '%Milk%' OR description LIKE '%Dark%'; The LIKE operator combined with % on both sides of the search terms allows for flexible searching.

  6. 31 Οκτ 2023 · To perform a basic string contains search using the LIKE operator, you can construct a query like this: SELECT * FROM table_name WHERE column_name LIKE '%search_string%'; In this query, replace table_name with the name of your table and column_name with the name of the column you want to search in. Replace search_string with the specific string ...

  7. 14 Μαρ 2014 · I need to check the string with the column if the column contains that string or not. example:String 'how to make pizza' and the column if has 'pizza' i need to fetch that.. like. SELECT * FROM event WHERE ('%how to make pizza%' LIKE EventName); any idea plz..