Re: %rowtype

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Pepe TD Vo <pepevo(at)yahoo(dot)com>, Pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: %rowtype
Date: 2018-11-09 07:26:40
Message-ID: cca2ac7b8f6f19c5334d6aa803be33e1065bd7be.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Pepe TD Vo wrote:
> Would you please tell me what I did wrong here?
> I couldn't find the rowtype eliminate with a cursor in multi-tables selected.
>
>
> CREATE OR REPLACE FUNCTION "CIDR_STAGING"."PR_MIG_STG_I864" ( v_Ret OUT int ) RETURNS integer as $$
> declare
> c1 cursor is
> SELECT ...;
> rec1 c1%rowtype;

There is a type associated with each view and table, but not with a cursor.

You need to use the generic type "record" for "rec1".

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

  • %rowtype at 2018-11-09 02:54:51 from Pepe TD Vo

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Pepe TD Vo 2018-11-09 13:12:45 Re: %rowtype
Previous Message Pepe TD Vo 2018-11-09 02:54:51 %rowtype