Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Ingres > Re: [Info-Ingre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 5997 of 6256
Post > Topic >>

Re: [Info-Ingres] get returned value of stored procedure in ingres

by Roy Hann <specially@[EMAIL PROTECTED] > Jul 21, 2008 at 05:57 PM

Naïm Ben Alaya wrote:

> I want to migrate some stored functions from oracle to ingres.
> If i am not wrong, I must create a procedure in ingres which returns the
> value that was returned by oracle function.
> The problem is that I haven't found a way to get this value.
> I wanted to know if it is possible to get this returned value in ingres
and
> by which way?

I'm not sure I properly understand your question, but maybe this is what
you want to know:

There are several ways to return values from Ingres 2006 database
procedures (DBPs). First off, there's the RETURN statement, which
allows you to return a single integer value.  The second possibility is
to call the procedure and pass the arguments BYREF, and in the parameter
list indicate that each parameter is IN, OUT, or INOUT.  If a parameter
is OUT, or INOUT you can use it to retun a result as a side-effect. 
Finally the third possibility is to return an entire row.  The procedure
must be declared as a row-producing procedure by specifying the row
structure with a RESULT ROW clause.  Multiple rows can be returned by
invoking the RETURN ROW statement repeatedly.

For details of all this, refer to
http://docs.ingres.com/sqlref/UnderstandingDatabaseProceduresSessionsandEvents#o1039

-- 
Roy

UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009
Go to http://www.iua.org.uk/join
to get on the mailing list.
 




 2 Posts in Topic:
[Info-Ingres] get returned value of stored procedure in ingres
"=?ISO-8859-1?Q?Na=E  2008-07-18 09:59:39 
Re: [Info-Ingres] get returned value of stored procedure in ingr
Roy Hann <specially@[E  2008-07-21 17:57:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:31:47 CST 2008.