mysql>mysql> SELECT GREATEST('B','A','C');+-----------------------+| GREATEST('B','A','C') |+-----------------------+| C |+-----------------------+1 row in set (0.00 sec)mysql>