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 = '早餐'; /* 声明游标 *
相关文章
相关标签/搜索