pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Brahmam Eswar <brahmam1234@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Oracle to PostgreSQL
Date: Thu, 09 Nov 2017 12:40:54 +0100
Message-ID: <1510227654.2625.7.camel@cybertec.at> (raw)
In-Reply-To: <CA+wLFo1+0c8gabuiiV7JWY2uA53_68zaiw10LOeAKqb0PcJmtw@mail.gmail.com>
References: <CA+wLFo1x--yiG5W7pGHA38ungq+3fsrOUB5_9n173O9Wk2z4MA@mail.gmail.com>
	<1510226310.2625.4.camel@cybertec.at>
	<CA+wLFo1+0c8gabuiiV7JWY2uA53_68zaiw10LOeAKqb0PcJmtw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (14+ messages)  latest in thread

Message-ID: <1510227654.2625.7.camel@cybertec.at>
Permalink:  ../1510227654.2625.7.camel@cybertec.at/
Also on:    postgresql.org/message-id/1510227654.2625.7.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, brahmam1234@gmail.com
  Subject: Re: Oracle to PostgreSQL
  In-Reply-To: <1510227654.2625.7.camel@cybertec.at>
  References: <CA+wLFo1x--yiG5W7pGHA38ungq+3fsrOUB5_9n173O9Wk2z4MA@mail.gmail.com> <1510226310.2625.4.camel@cybertec.at> <CA+wLFo1+0c8gabuiiV7JWY2uA53_68zaiw10LOeAKqb0PcJmtw@mail.gmail.com> <1510227654.2625.7.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox