Re: PostgreSQL Functions / PL-Language - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: PostgreSQL Functions / PL-Language
Date
Msg-id 20060218083154.GB20716@svana.org
Whole thread Raw
In response to PostgreSQL Functions / PL-Language  ("Jan Cruz" <malebug@gmail.com>)
Responses Re: PostgreSQL Functions / PL-Language  ("Jan Cruz" <malebug@gmail.com>)
List pgsql-general
On Sat, Feb 18, 2006 at 04:10:13PM +0800, Jan Cruz wrote:
> Correct me if I am wrong but SQL procedural language doesn't have support
> for variable declarations?

Correct, you'll need pl/pgsql for that.

> Why does my stored function returns only the first row of the query instead
> of the whole set of query?

Did you declare your function to return "setof <whatever>" ?

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Updating a sequential range of unique values?
Next
From: "Jan Cruz"
Date:
Subject: Re: PostgreSQL Functions / PL-Language