Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / July 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Naïm Ben Alaya - 18 Jul 2008 08:59 GMT
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?

Best Regards.
Naim
Roy Hann - 21 Jul 2008 23:57 GMT
> 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

Signature

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.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.