Stored Procedure with more than one OUT Parameter - Mailing list pgsql-bugs

From manisha balwadkar
Subject Stored Procedure with more than one OUT Parameter
Date
Msg-id 20061120140305.47253.qmail@web8801.mail.in.yahoo.com
Whole thread Raw
List pgsql-bugs
Hello,

I have written a stored procedure which will give me
total count of records plus number of records as per
my conditional criteria, but returns as setof records.

So to access count i have to iterate through
resultset, in java. So is there any way, to access
count once n setof records using resultset. Can I have
two OUT parameter, one as Integer n other as record in
single procedure.


Or at java side, can acces count before iterating
resultset only once. Remaining records as usual by
iterating resuleset.


Thanx,

Manisha



__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

pgsql-bugs by date:

Previous
From: "Karl DeBieechop"
Date:
Subject: BUG #2766: erratic segfault in libpq/DBD::Pg
Next
From: Kenneth Marshall
Date:
Subject: Re: [PERFORM] BUG #2737: hash indexing large tablefails,while btree of same index works