Mysql遊標使用

1.定義遊標 DECLARE cursor_name CURSOR FOR select_statement 2.打開遊標 OPEN cursor_name--這個語句打開先前聲明的遊標。 3.遍歷遊標 FETCH cursor_name INTO var_name [, var_name] ... 4.關閉遊標 CLOSE cursor_name 5.清除遊標 declear cursor_na
相關文章
相關標籤/搜索