Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 31 maj 2023 · The best way is making a full-text index on a column in the table and use contain instead of LIKE. SELECT * FROM MyTable WHERE contains(Column1, N'word1') AND contains(Column1, N'word2') AND contains(Column1, N'word3')

  2. 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}')

  3. 12 maj 2024 · In MS SQL, we can utilize the CHARINDEX() function to search for a substring’s position: SELECT * FROM Product WHERE CHARINDEX('Milk', description) > 0 OR CHARINDEX('Dark', description) > 0; Like POSITION() , CHARINDEX() returns the 1-based index of the search substring or 0 if it isn’t in the string.

  4. 23 mar 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)

  5. 7 lip 2022 · MySQL Text Function Examples. Sample Data. CONCAT () CHAR_LENGTH () and LENGTH () UPPER () & LOWER () SUBSTRING (), RIGHT (), and LEFT () REPLACE () TRIM () REVERSE () LOCATE () Time to Practice MySQL Text Functions! Do you work in MySQL as a data analyst?

  6. 23 sie 2021 · Here are some examples: ¹ (in the example, second to last and third to last characters are determined) ² (in the example, third and fourth characters are determined) Example query. SELECT name FROM planets. WHERE name LIKE "%us"; Where planets is a table with the data of the solar system's planets.

  7. Definition and Usage. The IF () function returns a value if a condition is TRUE, or another value if a condition is FALSE. Syntax. IF (condition, value_if_true, value_if_false) Parameter Values. Technical Details. Works in: From MySQL 4.0. More Examples. Example. Return 5 if the condition is TRUE, or 10 if the condition is FALSE: