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. Example. Test whether two strings are the same and return "YES" if they are, or "NO" if not:

  3. 21 sie 2024 · MySQL offers conditional control flow with IF statements, allowing us to execute blocks of SQL code depending on whether a condition is true or false. In this article, We will learn about What is Decision-Making in MySQL with different statements along with examples and so on.

  4. 1 lut 2010 · Here's a query to update a table based on a comparison of another table. If record is not found in tableB, it will update the "active" value to "n". If it's found, will set the value to NULL. Hope this helps someone else.

  5. 6 cze 2024 · The IF() function in MySQL returns a value if the condition is TRUE and another value if the condition is FALSE. The MySQL IF() function can return values that can be either numeric or strings, depending upon the context in which the function is used.

  6. 1 cze 2022 · In this article, we will explain their diversities and show usage examples. Also, we will review other MySQL functions. What is MySQL IF function? The IF statement allows you to verify a condition. There are three types of MySQL IF statements: You can use IF-THEN to run a collection of SQL queries based on a condition. Here is the statement syntax:

  7. This MySQL tutorial explains how to use the IF-THEN-ELSE statement in MySQL with syntax and examples. In MySQL, the IF-THEN-ELSE statement is used to execute code when a condition is TRUE, or execute different code if the condition evaluates to FALSE.