declare 游标名 CURSOR scroll for select...
open 游标名
fetch next from 游标名 into 变量名..
begin
...
end
deallocate 游标名