Skip site navigation (1) Skip section navigation (2)

Stored procedures doubts

From: "Senthil" <senthil(dot)kandaswamy(at)mobax(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Stored procedures doubts
Date: 2002-12-31 05:10:54
Message-ID: 001301c2b08b$05b3b000$67cac9c8@mobax.com (view raw or flat)
Thread:
Lists: pgsql-admin
Hai everybody,
  
Hai, 
   Currently, I'm at the work of converting database from Oracle to Postgresql.
   I have some doubts:

         1) What is the equivalent of Oracle ROWNUM in Postgresql?  If there is no such equivalent, can U give me an idea about                 that?
         2) How to replace stored procedures with many OUT parameters?  I want to call the procedure from Java code.
             Please tell me the way to return the values of OUT parameters returned previously by Oracle, from the plpgsql code.
              It's very urgent.  Please reply quickly with some code examples.

                HOW to handle the values returned by the Oracle OUT parameters, in Postgresql?
                i.e, how to return the Oracle OUT parameters'  values to the calling Java code, in postgresql.
                If anybody knows, please explain with suitable examples with plpgsql code and also the Calling Java code.

         3) Can default values be assigned to postgresql function parameters?  If yes, how? 


Thanks in advance.
Senthil.

pgsql-admin by date

Next:From: Rob Abernethy IVDate: 2002-12-31 07:09:06
Subject: pg_hba
Previous:From: Joe ConwayDate: 2002-12-31 01:34:40
Subject: Re: pg_group view

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group