control flow function in mysql

join shbcf.ru