我想在MySQL存儲函數中使用goto。 我該如何使用? 示例代碼:如何在MySQL存儲函數中使用goto標籤
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;