pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to call a stored procedure in PostgreSQL
5+ messages / 4 participants
[nested] [flat]

* How to call a stored procedure in PostgreSQL
@ 2005-01-20 19:25 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  2005-01-20 19:30 ` Re: How to call a stored procedure in PostgreSQL Joshua D. Drake <jd@commandprompt.com>
  2005-01-20 19:43 ` Re: How to call a stored procedure in PostgreSQL Greg Campbell <greg.campbell@us.michelin.com>
  2005-01-20 19:46 ` Re: How to call a stored procedure in PostgreSQL Greg Campbell <greg.campbell@us.michelin.com>
  2005-01-20 19:54 ` Re: How to call a stored procedure in PostgreSQL markw@mohawksoft.com
  0 siblings, 4 replies; 5+ messages in thread

From: Joost Kraaijeveld @ 2005-01-20 19:25 UTC (permalink / raw)
  To: pgsql-odbc

Hi all,

How do I call a stored procedure in PostgreSQL? I tried "call procedure-name (arg 1, arg2)" but that does not seem to work...

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl 



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: How to call a stored procedure in PostgreSQL
  2005-01-20 19:25 How to call a stored procedure in PostgreSQL Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2005-01-20 19:30 ` Joshua D. Drake <jd@commandprompt.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Joshua D. Drake @ 2005-01-20 19:30 UTC (permalink / raw)
  To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-odbc

Joost Kraaijeveld wrote:
> Hi all,
> 
> How do I call a stored procedure in PostgreSQL? I tried "call procedure-name (arg 1, arg2)" but that does not seem to work...

select procedure(arg1,arg2)

or

select * from procedure(arg1,arg2)

depending on the type.

Sincerely,

Joshua D. Drake


> 
> Groeten,
> 
> Joost Kraaijeveld
> Askesis B.V.
> Molukkenstraat 14
> 6524NB Nijmegen
> tel: 024-3888063 / 06-51855277
> fax: 024-3608416
> e-mail: J.Kraaijeveld@Askesis.nl
> web: www.askesis.nl 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org


-- 
Command Prompt, Inc., your source for PostgreSQL replication,
professional support, programming, managed services, shared
and dedicated hosting. Home of the Open Source Projects plPHP,
plPerlNG, pgManage,  and pgPHPtoolkit.
Contact us now at: +1-503-667-4564 - http://www.commandprompt.com

Attachments:

jd.vcf (text/x-vcard, 638B) download begin:vcard fn:Joshua D. Drake n:Drake;Joshua D. org:Command Prompt, Inc. adr:;;PO Box 215;Cascade Locks;Oregon;97014;USA email;internet:jd@commandprompt.com title:Consultant tel;work:503-667-4564 tel;fax:503-210-0334 note:Command Prompt, Inc. is the largest and oldest US based commercial PostgreSQL support provider. We provide the only commercially viable integrated PostgreSQL replication solution, but also custom programming, and support. We authored the book Practical PostgreSQL, the procedural language plPHP, and adding trigger capability to plPerl. x-mozilla-html:FALSE url:http://www.commandprompt.com/ version:2.1 end:vcard
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: How to call a stored procedure in PostgreSQL
  2005-01-20 19:25 How to call a stored procedure in PostgreSQL Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2005-01-20 19:43 ` Greg Campbell <greg.campbell@us.michelin.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Greg Campbell @ 2005-01-20 19:43 UTC (permalink / raw)
  To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-odbc

Try "SELECT procedure-name(arg1, arg2)" as if it were a SELECT or INSERT 
or UPDATE statement.
For example
if I have function named calc_square(int)
I could use "SELECT calc_square(2);"


Joost Kraaijeveld wrote:

>Hi all,
>
>How do I call a stored procedure in PostgreSQL? I tried "call procedure-name (arg 1, arg2)" but that does not seem to work...
>
>Groeten,
>
>Joost Kraaijeveld
>Askesis B.V.
>Molukkenstraat 14
>6524NB Nijmegen
>tel: 024-3888063 / 06-51855277
>fax: 024-3608416
>e-mail: J.Kraaijeveld@Askesis.nl
>web: www.askesis.nl 
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>  
>

Attachments:

greg.campbell.vcf (text/x-vcard, 281B) download begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: How to call a stored procedure in PostgreSQL
  2005-01-20 19:25 How to call a stored procedure in PostgreSQL Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2005-01-20 19:46 ` Greg Campbell <greg.campbell@us.michelin.com>
  3 siblings, 0 replies; 5+ messages in thread

From: Greg Campbell @ 2005-01-20 19:46 UTC (permalink / raw)
  To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-odbc

Addendum
"SELECT procedure_name(arg1, arg2)" for NON-select non-data returning 
queries
"SELECT * FROM procedure_name(arg1, arg2)" for SELECT queries

Joost Kraaijeveld wrote:

>Hi all,
>
>How do I call a stored procedure in PostgreSQL? I tried "call procedure-name (arg 1, arg2)" but that does not seem to work...
>
>Groeten,
>
>Joost Kraaijeveld
>Askesis B.V.
>Molukkenstraat 14
>6524NB Nijmegen
>tel: 024-3888063 / 06-51855277
>fax: 024-3608416
>e-mail: J.Kraaijeveld@Askesis.nl
>web: www.askesis.nl 
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>  
>

Attachments:

greg.campbell.vcf (text/x-vcard, 281B) download begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: How to call a stored procedure in PostgreSQL
  2005-01-20 19:25 How to call a stored procedure in PostgreSQL Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2005-01-20 19:54 ` markw@mohawksoft.com
  3 siblings, 0 replies; 5+ messages in thread

From: markw@mohawksoft.com @ 2005-01-20 19:54 UTC (permalink / raw)
  To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-odbc

> Hi all,
>
> How do I call a stored procedure in PostgreSQL? I tried "call
> procedure-name (arg 1, arg2)" but that does not seem to work...

select procedure-name(arg1, arg2);

>
> Groeten,
>
> Joost Kraaijeveld
> Askesis B.V.
> Molukkenstraat 14
> 6524NB Nijmegen
> tel: 024-3888063 / 06-51855277
> fax: 024-3608416
> e-mail: J.Kraaijeveld@Askesis.nl
> web: www.askesis.nl
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2005-01-20 19:54 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-01-20 19:25 How to call a stored procedure in PostgreSQL Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2005-01-20 19:30 ` Joshua D. Drake <jd@commandprompt.com>
2005-01-20 19:43 ` Greg Campbell <greg.campbell@us.michelin.com>
2005-01-20 19:46 ` Greg Campbell <greg.campbell@us.michelin.com>
2005-01-20 19:54 ` markw@mohawksoft.com

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox