From: Ash Grove <ash_grv7@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: stored function, multiple queries, best practices
Date: Fri, 14 Apr 2006 07:37:20 -0700 (PDT)
Message-ID: <20060414143720.5342.qmail@web52512.mail.yahoo.com> (raw)
In-Reply-To: <443FAF52.901@opencloud.com>
>Why assemble a string and parse it? Why not just use
>multiple parameters
>directly?
>-O
So, Oliver, you're suggesting something like "call
myfunction('query1','query2','query3')"?
> I currently do this by building a delimited string
> in
> the application containing all data to be inserted
> and
> then sending it, via callablestatement, to a
> stored
> function. The function parses the string, does the
> inserts and returns the primary key via a
> registered
> out parameter.
>
Why assemble a string and parse it? Why not just use
multiple parameters
directly?
-O
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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-jdbc@postgresql.org
Cc: ash_grv7@yahoo.com
Subject: Re: stored function, multiple queries, best practices
In-Reply-To: <20060414143720.5342.qmail@web52512.mail.yahoo.com>
References: <443FAF52.901@opencloud.com> <20060414143720.5342.qmail@web52512.mail.yahoo.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