mysql:在while循環中開啓關閉遊標實現循環獲取某表數據

向BG_OUTPAT_MASTER_INDEX 表插入100條數據,其中須要從sys_team表中獲取team_id 的值,team_id只有10條數據,那麼如何循環使用呢。fetch 解決:在while循環中使用遊標。spa drop PROCEDURE if EXISTS bg_outpat_master_index; create PROCEDURE bg_outpat_master_ind
相關文章
相關標籤/搜索