0
例如,以下可以嗎?更新遊標的查詢表是否合法
DECLARE aId VARCHAR(20);
DECLARE cur1 CURSOR FOR SELECT id FROM new_records WHERE is_loaded = false;
read_loop: LOOP
FETCH cur1 INTO aId;
...
update new_records set is_loaded = True where id = aId ;
...
CLOSE cur1;
END
謝謝,並且,通過其他方式,您是否使用臨時表? –