Control Flow
IF
SELECT IF(STRCMP('Ham', 'Ham'), 'No Match', 'Match');
Match
Note: STRCMP
returns 0
if the strings are the same (see
String Functions).
SELECT IF(STRCMP('Ham', 'Ham'), 'No Match', 'Match');
Match
Note: STRCMP
returns 0
if the strings are the same (see
String Functions).