Yahoo Poland Wyszukiwanie w Internecie

Search results

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

    This tutorial shows you how to use MySQL IF statement to execute a block of SQL code based on a specified condition.

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

  3. 1 cze 2022 · In this article, we will explain the diversities of MySQL IF function and MySQL IF statement and show their usage examples. Also, we will review other MySQL functions.

  4. 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:

  5. 15 gru 2012 · IF() in MySQL is a ternary function, not a control structure -- if the condition in the first argument is true, it returns the second argument; otherwise, it returns the third argument. There is no corresponding ELSEIF() function or END IF keyword.

  6. www.mysqltutorial.org › mysql-control-flow-functions › mysql-if-functionMySQL IF Function - MySQL Tutorial

    Let’s practice with several examples to see how the MySQL IF function works. A simple IF function example. You can use the IF function directly in the SELECT statement without the FROM and other clauses as follows: SELECT IF (1 = 2, 'true', 'false'); -- false Code language: SQL (Structured Query Language) (sql) Try It Out.

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

  1. Ludzie szukają również