Re: Oracle to PostgreSQL

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Brahmam Eswar <brahmam1234(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Oracle to PostgreSQL
Date: 2017-11-09 11:40:54
Message-ID: 1510227654.2625.7.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2017-11-09 at 17:01 +0530, Brahmam Eswar wrote:
> Here is the snippet of it.

> TYPE INV_LINES_RT IS RECORD(
> VENDOR_NUM A.Datastore.VENDOR_NUM%TYPE,
> VENDOR_SITE_CODE A.Datastore.VENDOR_SITE_CODE%TYPE,
> INVOICE_NUM A.Datastore.INVOICE_NUM%TYPE,
> TXN_CNT NUMBER
> );

You can create a composite type in PostgreSQL:

CREATE TYPE complex AS (r integer, i integer);

> TYPE INV_LINES_T IS TABLE OF INV_LINES_RT;

You would use an array in this case:

DECLARE
carr complex[];

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Felix Kunde 2017-11-09 12:16:58 Re: Oracle to PostgreSQL
Previous Message Michael Paquier 2017-11-09 11:39:53 Re: Postgresql and github