mysql存儲過程的坑(關於declare與具體實現順序)

先上代碼mysql BEGIN DECLARE hotelId BIGINT DEFAULT 0; DECLARE done int DEFAULT FALSE; DECLARE tbtypeId BIGINT DEFAULT 0; SELECT id into tbtypeId from dbbanquet.tbtype where fname = '早餐'; /* 聲明遊標 *
相關文章
相關標籤/搜索