pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Ash Grove <ash_grv7@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: stored function, multiple queries, best practices
Date: Fri, 14 Apr 2006 23:18:58 +0900
Message-ID: <443FAF52.901@opencloud.com> (raw)
In-Reply-To: <20060414124834.63095.qmail@web52501.mail.yahoo.com>
References: <20060414124834.63095.qmail@web52501.mail.yahoo.com>

Ash Grove wrote:

> 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



view thread (6+ messages)  latest in thread

Message-ID: <443FAF52.901@opencloud.com>
Permalink:  ../443FAF52.901@opencloud.com/
Also on:    postgresql.org/message-id/443FAF52.901@opencloud.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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, ash_grv7@yahoo.com
  Subject: Re: stored function, multiple queries, best practices
  In-Reply-To: <443FAF52.901@opencloud.com>
  References: <20060414124834.63095.qmail@web52501.mail.yahoo.com> <443FAF52.901@opencloud.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