並前往https://deepinout.com/mysql/mysql-questions/t_how-mysql-if-else-statement-can-be-used-in-a-stored-procedure.html