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. Its syntax is as follows: LOCATE(substring, string); Where:

  3. 23 Μαρ 2023 · How to Query for Strings in SQL Server with the CHARINDEX Function. CHARINDEX () is an SQL server function for finding the index of a substring in a string. The CHARINDEX() function takes 3 arguments – the substring, the string, and the starting position. The syntax looks like this: CHARINDEX(substring, string, start_position)

  4. 12 Μαΐ 2024 · SELECT * FROM Product WHERE POSITION('Milk' IN description) > 0 OR POSITION('Dark' IN description) > 0; The POSITION() function returns the index of the provided substring in the given column and 0 if it doesn’t exist.

  5. 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 ...

  6. Returns a set value (a string containing substrings separated by , characters) consisting of the strings that have the corresponding bit in bits set. str1 corresponds to bit 0, str2 to bit 1, and so on. NULL values in str1, str2, ... are not appended to the result.

  7. 23 Αυγ 2021 · The easiest way to use RegEx it's to use it to match an exact sequence of characters. For example the regex "Kevin" will match all strings that contains those letters in that exact sequence, as " Kevin ", " Kevin is great", "this is my friend Kevin " and so on.