請幫我使用Mysql函數。代碼:Mysql函數錯誤 - 無法弄清楚
DELIMITER $$
CREATE FUNCTION `media`.`Return_Next_Season`(
season VARCHAR(200))
RETURNS VARCHAR
DECLARE _ids INT ;
DECLARE _bsk VARCHAR(200);
SELECT id INTO _ids FROM media._broadcast_seasons WHERE broadcast_season_key = '20132014_Fall';
SELECT broadcast_season_key INTO bsk FROM media._broadcast_seasons WHERE id = ids;
RETURN bsk;
BEGIN
END$$
DELIMITER ;
什麼是錯誤堆棧? – Rugal
你可以顯示你的表格嗎?你的兩個選擇沒有任何意義。你不使用季節參數。 – peterm