pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Campbell <greg.campbell@us.michelin.com>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: Pgsql-Odbc (E-mail) <pgsql-odbc@postgresql.org>
Subject: Re: How to call a stored procedure in PostgreSQL
Date: Thu, 20 Jan 2005 14:43:38 -0500
Message-ID: <41F009EA.6050401@us.michelin.com> (raw)
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC41048A0D6@obelix.askesis.nl>
References: <A3D1526C98B7C1409A687E0943EAC41048A0D6@obelix.askesis.nl>

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

view thread (5+ messages)  latest in thread

Message-ID: <41F009EA.6050401@us.michelin.com>
Permalink:  ../41F009EA.6050401@us.michelin.com/
Also on:    postgresql.org/message-id/41F009EA.6050401@us.michelin.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: greg.campbell@us.michelin.com, J.Kraaijeveld@Askesis.nl
  Subject: Re: How to call a stored procedure in PostgreSQL
  In-Reply-To: <41F009EA.6050401@us.michelin.com>
  References: <A3D1526C98B7C1409A687E0943EAC41048A0D6@obelix.askesis.nl> <41F009EA.6050401@us.michelin.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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