AnneZahra
0
Q:

if sql

SELECT SUM(IF(user.name LIKE '%bob%',1,0)) AS `total_bobs`,
5
IF Boolean_expression
BEGIN
    -- Statement block executes when the Boolean expression is TRUE
END
ELSE
BEGIN
    -- Statement block executes when the Boolean expression is FALSE
END
0

  SELECT 
  IF(500<1000, "YES", "NO"); 
0

New to Communities?

Join the community