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

Re: Question about stored procedures

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Question about stored procedures
Date: 2006-06-12 09:15:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
am  12.06.2006, um 10:58:04 +0200 mailte Greg folgendes:
> >From what I understand, a stored procedure in pgSQL is actually a function
> that returns rows? Am I correct?

Yes and no, if a function returns multiple rows, than is this a SRF (Set
Returning Function)

>  Can somebody show me the syntax for a basic stored procedure that takes an
> argument?
there are examples. Read this.

> i.e I would like the query to be "select name, email from users where userid
> = @userid"

If you want to execute dynamic querys, read

> Sorry for the easy question but I looked at the docs and just can't seem to

Read again.

Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C
 ===    Schollglas Unternehmensgruppe    === 

In response to


pgsql-novice by date

Next:From: Devrim GUNDUZDate: 2006-06-12 09:32:49
Subject: Re: Easy SQL Question
Previous:From: Shoaib MirDate: 2006-06-12 09:01:44
Subject: Re: Easy SQL Question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group