Cómo usar goto label en la función MySQL almacenada
Me gustaría usar goto en la función almacenada en MySQL. ¿Cómo puedo usar? El código de muestra es:
if (action = 'D') then
if (rowcount > 0) then
DELETE FROM datatable WHERE id = 2;
else
SET p=CONCAT('Can not delete',@b);
goto ret_label;
end if;
end if;
Label: ret_label;
return 0;