SQL Reference Contents

NAME

move - move cursor position

SYNOPSIS

move [ (forward | backward ) ] [ ( number | all ) ] [in cursor_name]

DESCRIPTION

Move allows a user to move cursor position for specified number of instances. Move works like fetch command: it fetches instances, but put them nowhere.

EXAMPLE

--
--set up and use a cursor
--
begin
declare mycursor cursor for
select * from pg-user;
--
--Move for 5 instances in the cursor FOO
--
move 5 in FOO;
--
--Fetch 6th instance in the cursor FOO
--
fetch 1 in FOO;
--
--close
--
close foo;
end;

SEE ALSO

begin(l) , end(l) , close(l) , fetch(l) , select(l) .


Table of Contents