pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: Penchalaiah P. <penchalaiahp@infics.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: i need informarion regarding functions and arrays...
Date: Wed, 2 Aug 2006 19:13:51 -0500
Message-ID: <bf05e51c0608021713r2a4ed9e3uc5bb03ba14b21e12@mail.gmail.com> (raw)
In-Reply-To: <A70AE049E81A6A40879D5DC0AC8C38C906D531B4@venus.infics.com>
References: <A70AE049E81A6A40879D5DC0AC8C38C906D531B4@venus.infics.com>

On 8/2/06, Penchalaiah P. <penchalaiahp@infics.com> wrote:
>
>  Hi good evening to all……..
>
>
>
> Rcid    value
>
> 1                     yes
>
> 2                     no
>
> 3                     yes
>
> 4                     yes
>
> 5                     no
>
> 6                     yes
>
> 7                     no
>
> 8                     yes
>
> 9                     no
>
> 10                 yes
>
> 11                 no
>
> 12                 no
>
>
>
>
>
> this is the front end screen they will enter all these 12 in  values… then
> they will press save button… these values have to be store in rnt table… can
> u tell me how to store all these 12 values at a time in rnt table…
>
> but I written one function for this but it is accepting only one value at
> a time to insert…
>
> this is the function…
>
>
>
> create or replace function rentfunc(in_rcid int4,in_value varchar) as '
>
> begin
>
> insert into rnt(racid,auditorvalue) values ($1,$2);
>
> end;
>
> 'language'plpgsql';
>
>
>
> If any one knows how to store all these 12 values in a rnt table… let me know …..
>
>
Why not just do a loop and run 12 separate inserts (or 12 separate calls to
the function)?

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
==================================================================

view thread (2+ messages)

Message-ID: <bf05e51c0608021713r2a4ed9e3uc5bb03ba14b21e12@mail.gmail.com>
Permalink:  ../bf05e51c0608021713r2a4ed9e3uc5bb03ba14b21e12@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0608021713r2a4ed9e3uc5bb03ba14b21e12@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: postgresql@aranya.com, penchalaiahp@infics.com
  Subject: Re: i need informarion regarding functions and arrays...
  In-Reply-To: <bf05e51c0608021713r2a4ed9e3uc5bb03ba14b21e12@mail.gmail.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