Cursor LOCAL
cursor default is GLOBAL. use LOCAL FAST_FORWARD will execute much faster.
Last updated:
Warning: Review and test in a non-production environment before running.
-- cursor default is GLOBAL.
-- we use the next syntax to create a LOCAL cursor.
-- much much faster
declare c cursor LOCAL FAST_FORWARD
FOR SELECT NAME FROM TABLE;