Re: JDBC + PL/pgSQL ?

From: Daryl Beattie <dbeattie(at)insystems(dot)com>
To: 'Dave Cramer' <Dave(at)micro-automation(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC + PL/pgSQL ?
Date: 2002-06-26 21:18:16
Message-ID: 4160E6FC08ABD21191F000805F857E9304DF44DB@mail.insystems.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dear Dave and JDBC people,

Hi, I must apologize for not being entirely clear (truth is, I hit
Ctrl+Enter in Outlook before I was finished typing).
What I mean is; is it possible to create a Statement from a String
which contains PL/pgSQL code, and then execute that Statement. Thus, the
PL/pgSQL procedure is not stored in the database, but is being called
through the JDBC connection.
I know that in Oracle you can do this with their PL/SQL code, I was
just wondering if the PostgreSQL JDBC driver also supports this.
Thanks for your help. Sorry for the incomplete e-mail the first
time.

Sincerely,

Daryl.

> -----Original Message-----
> From: Dave Cramer [mailto:Dave(at)micro-automation(dot)net]
> Sent: Wednesday, June 26, 2002 4:54 PM
> To: Daryl Beattie
> Cc: pgsql-jdbc(at)postgresql(dot)org
> Subject: Re: [JDBC] JDBC + PL/pgSQL ?
>
>
> Daryl,
>
> Yes, just do a select procedurename();
>
> Dave
> On Wed, 2002-06-26 at 13:43, Daryl Beattie wrote:
> > Dear JDBC people,
> >
> > I have a very simple question; is it possible to write
> a PL/pgSQL
> > procedure and execute it through JDBC's Statement.execute()
> method? Thanks
> > for your time. :)
> >
> >
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to
> majordomo(at)postgresql(dot)org
> >
> >
> >
>
>
>

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Konstantinos Spyropoulos 2002-06-26 22:15:00 Problem with JDBC: no suitable driver
Previous Message Dave Cramer 2002-06-26 20:54:26 Re: JDBC + PL/pgSQL ?