Sep 17, 2018

Ternary conditional operator in MySQL

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