MySQL IF Statement - MySQL Tutorial
Summary: in this tutorial, you will learn how to use MySQL IF statement to execute a block of SQL code based on a specified condition.. Note that MySQL has an IF() function that is different from the IF statement described in this tutorial.. The IF statement has three forms: simple IF-THEN statement, IF-THEN-ELSE statement, and IF-THEN-ELSEIF- ELSE statement.
DA: 97 PA: 96 MOZ Rank: 59