mysql簡單的存儲過程

一個簡單的mysql存儲過程 代碼mysql BEGIN declare a varchar(32); -- 自定義變量1 DECLARE done INT DEFAULT FALSE; -- 自定義控制遊標循環變量,默認false DECLARE myId CURSOR FOR (select id from table where id > b); -- 定義遊標並輸入結果集 ,b爲外部
相關文章
相關標籤/搜索