2016-12-09 78 views

回答

0

創建存儲過程例如:

DELIMITER 
    CREATE PROCEDURE country_hos 
    (IN con CHAR(20)) 
    BEGIN 
     SELECT Name, HeadOfState FROM Country 
     WHERE Continent = con; 
    END 
    DELIMITER; 

呼叫或運行存儲過程

CALL country_hos('Europe');