Oct 11, 2017

Ternary conditional operator in MySQL

SELECT IF(id>3, 'larger', 'smaller')