http://dba.stackexchange.com/questio...ction-in-mysql