Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4BDwrA82211 for ; Fri, 11 May 2001 09:58:53 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4AButA50777 for ; Thu, 10 May 2001 07:56:55 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4ABnji64467 for pgsql-sql@postgresql.org; Thu, 10 May 2001 07:49:45 -0400 (EDT) (envelope-from news) From: Amit X-Newsgroups: comp.databases.postgresql.sql Subject: Problem in Porting from Oracle to Postgres SQl Date: Thu, 10 May 2001 17:22:56 +0530 Organization: ennovationsoft Lines: 59 Message-ID: <3AFA8118.FB0400BC@rediffmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------C46DE1DEF856A17B70242EDA" X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en To: pgsql-sql@postgresql.org X-Archive-Number: 200105/97 X-Sequence-Number: 2899 --------------C46DE1DEF856A17B70242EDA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! I am facing two problems in porting from oracle to Postgres SQL. 1> There is a code in Oracle like Type Tstate is table of number(9) index by binary_integer; . ........ To define a runtime table, basically it works like a array, How can it be possible in Postgres SQL, I have tried create temp table.... But it not works.. Is there any way to use arrays. 2> There is one function in Oracle Executesql '...........' to execute and what i got in Postgres is Execute immediate '.........' But it is giving error at Execute. I will be very thankful if any one help me. Amit ( India ) --------------C46DE1DEF856A17B70242EDA Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi!

I am facing two problems in porting from oracle to Postgres SQL.

1> There is a code in Oracle like

  Type Tstate is table of number(9)
    index by binary_integer;
.
........
To define a runtime table, basically it works like a array, How can it be possible in Postgres SQL,
I have tried create temp table.... But it not works..
Is there any way to use arrays.
 

2> There is one function in Oracle Executesql '...........' to execute
    and what i got in Postgres is Execute immediate '.........'
    But it is giving error at Execute.

I will be very thankful if any one help me.

  Amit
( India ) --------------C46DE1DEF856A17B70242EDA--