Re: SQL return value...

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
Cc: PostgreSQL Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: SQL return value...
Date: 2005-10-19 22:33:30
Message-ID: AC1A4F58-F955-4DD7-8FEF-9DFE052C61E9@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice


On Oct 20, 2005, at 3:24 , Cristian Prieto wrote:

> This is maybe a really newbie question, but, when I have an SQL
> function like that:
>
>
>
> $$
>
> Insert into mytable (id, name) values ($1, $2);
>
> $$
>
>
>
> What return value suppose to return?
>
>

Anything you want :). If you don't want to return anything, you can
use RETURNS VOID

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2005-10-19 22:44:49 Re: [pgsql-advocacy] Oracle buys Innobase
Previous Message Dann Corbit 2005-10-19 21:49:06 Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] Oracle buysInnobase)

Browse pgsql-novice by date

  From Date Subject
Next Message Richard Huxton 2005-10-20 07:34:23 Re: SQL return value...
Previous Message Chris Browne 2005-10-19 21:56:21 Re: bit map indexes in postgres