intente usar la función http://dev. mysql.com/doc/refman/5.0/en/control-flow-functions.html#function_if
SELECT IF(@result = 0, 'true', '((something here))') AS message
intente usar la función http://dev. mysql.com/doc/refman/5.0/en/control-flow-functions.html#function_if
SELECT IF(@result = 0, 'true', '((something here))') AS message