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. www.mysqltutorial.org › mysql-stored-procedure › mysql-if-statementMySQL IF Statement - MySQL Tutorial

    Use IF...THEN statement to conditionally execute a block of statements based on the evaluation of a specified condition. Use IF...THEN...ELSE statement to execute a block of statements if a specified condition is true and an alternative block of statements if the condition is false.

  3. 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. If no search_condition matches, the ELSE clause statement_list executes.

  4. 1 cze 2022 · There are two types of IFs in MySQL: the IF statement and the IF function. Both are different from each other. In this article, we will explain their diversities and show usage examples. Also, we will review other MySQL functions. Contents. MySQL IF statements: syntax and examples; MySQL IF-THEN statement; MySQL IF-THEN-ELSE statement

  5. In this tutorial, you'll learn how to use the MySQL IF statement. In MySQL, IF is a flow control statement and allows you to execute a block of SQL statements when a condition is TRUE, and execute a different block of SQL statements when the condition evaluates to FALSE.

  6. 11 lip 2024 · The IF () function in MySQL is a powerful tool that allows you to implement conditional logic directly within your SQL queries. It takes three parameters: a condition to evaluate, a value to return if the condition is true, and a value to return if the condition is false.

  7. 9 lip 2022 · In this tutorial, we will learn about the IF Statement in MySQL which is very similar to the if statements in any other programing language such as C, C++, Java, Python etc. We will also learn different forms of the IF statement and their examples.

  1. Ludzie szukają również