The SQL syntax for IF branching looks like this: : IF « Flow Control « SQL / MySQL






The SQL syntax for IF branching looks like this:

      


IF condition THEN
commands;
[ELSE IF condition THEN
commands;]
[ELSE
commands;]
END IF;

   
    
    
    
    
    
  








Related examples in the same category

1.Use IF in select clause