I\'m using H2 (with MySQL compatibility mode) to write some automated tests against our software that uses MySQL. Unfortunately, it seems like H2 does not have have the IF
IF
Yes you can create the if function as an alias:
CREATE ALIAS IF NOT EXISTS `IF` AS $$ String ifFunction(boolean condition, String exp1, String exp2){ if(condition) { return exp1; } else { return exp2; } } $$;