Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Select Into help




On Jan 18, 2007, at 11:08 AM, brian stapel wrote:

Below is my current version of the function. It compiles and executes. How ever, it returns only one record - the last select into statement


This is because you only call return next one time. You need to call it multiple times in a loop if you expect to return a set of records. This article is somewhat old, but has some detailed examples:

http://www.postgresql.org/docs/techdocs.17






John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group