Fix example so it works.

This commit is contained in:
Bruce Momjian 1997-03-01 15:26:42 +00:00
parent 7e6aeb5074
commit 799755b30d

View File

@ -1,6 +1,6 @@
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.2 1996/12/11 00:27:45 momjian Exp $ .\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.3 1997/03/01 15:26:42 momjian Exp $
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL .TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
.SH NAME .SH NAME
fetch \(em fetch instance(s) from a cursor fetch \(em fetch instance(s) from a cursor
@ -43,20 +43,20 @@ because the data that they store spans multiple user queries.
-- --
begin begin
declare mycursor cursor for declare mycursor cursor for
select * from pg-user select * from pg-user;
end
.fi
.nf
-- --
--Fetch all the instances available in the cursor FOO --Fetch all the instances available in the cursor FOO
-- --
fetch all in FOO fetch all in FOO;
.fi
.nf
-- --
--Fetch 5 instances backward in the cursor FOO --Fetch 5 instances backward in the cursor FOO
-- --
fetch backward 5 in FOO fetch backward 5 in FOO;
--
--close
--
close foo;
end;
.fi .fi
.SH "SEE ALSO" .SH "SEE ALSO"
begin(l), begin(l),