http://dev.mysql.com/doc/refman/5.1/...d-example.html