Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 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: SELECT IF (500<1000, 5, 10); Try it Yourself » Example. Test whether two strings are the same and return "YES" if they are, or "NO" if not:

  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 lut 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:

  4. There is also an IF() function, which differs from the IF statement described here. See Section 14.5, “Flow Control Functions”. The IF statement can have THEN, ELSE, and ELSEIF clauses, and it is terminated with END IF. If a given search_condition evaluates to true, the corresponding THEN or ELSEIF clause statement_list executes.

  5. www.mysqltutorial.org › mysql-stored-procedure › mysql-if-statementMySQL IF Statement - MySQL Tutorial

    The IF statement has three forms: IF...THEN statement: Evaluate one condition and execute a code block if the condition is true. IF...THEN...ELSE statement: Evaluate one condition and execute a code block if the condition is true; otherwise, execute another code block. IF...THEN...ELSEIF...ELSE statement: Evaluate multiple conditions and ...

  6. The world's most popular open source database Contact MySQL | Login | Register. MySQL.com; Downloads; Documentation; Developer Zone

  7. how can i search for a particular string in mysql? I tried using contains- gives me error: SELECT r.name. , r.network. , r.namestring. , i.name. , r.rid. , i.id. , d.dtime. , d.ifInOctets. , d.description. FROM router AS r. INNER JOIN interface AS i ON r.rid = i.rid. INNER JOIN 1278993600_1_60 AS d ON i.id = d.id.

  1. Ludzie szukają również