pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
i need informarion regarding functions and arrays...
2+ messages / 2 participants
[nested] [flat]

* i need informarion regarding functions and arrays...
@ 2006-08-02 13:02 Penchalaiah P. <penchalaiahp@infics.com>
  2006-08-03 00:13 ` Re: i need informarion regarding functions and arrays... Aaron Bono <postgresql@aranya.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Penchalaiah P. @ 2006-08-02 13:02 UTC (permalink / raw)
  To: pgsql-sql


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 .....





Thanks  &  Regards

Penchal reddy | Software Engineer          

Infinite Computer Solutions | Exciting Times...Infinite Possibilities...


SEI-CMMI level 5 | ISO 9001:2000

IT SERVICES | BPO


Telecom | Finance | Healthcare | Manufacturing | Energy & Utilities |
Retail & Distribution | Government


Tel +91-80-5193-0000(Ext:503)| Fax  +91-80-51930009 | Cell No
+91-9980012376|www.infics.com         

Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and/ or its Customers and is intended for use only by
the individual or entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under applicable law. If you are not the intended recipient or it
appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at info.in@infics.com and delete this mail from
your records.





Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: i need informarion regarding functions and arrays...
  2006-08-02 13:02 i need informarion regarding functions and arrays... Penchalaiah P. <penchalaiahp@infics.com>
@ 2006-08-03 00:13 ` Aaron Bono <postgresql@aranya.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Aaron Bono @ 2006-08-03 00:13 UTC (permalink / raw)
  To: Penchalaiah P. <penchalaiahp@infics.com>; +Cc: pgsql-sql

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
==================================================================

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-08-03 00:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-02 13:02 i need informarion regarding functions and arrays... Penchalaiah P. <penchalaiahp@infics.com>
2006-08-03 00:13 ` Aaron Bono <postgresql@aranya.com>

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