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 16:40:28
Message-ID: 384b702eb2c1ce3bfb40c290852fc461f9bd24fb.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Pepe TD Vo wrote:
> thank you Ms. Albe,

I am male, but never mind.

> I have tried that and still not working. It passed that error and then complained about the shema, cidr_staging does not exist and/or c1 (cursor) is not exist. when I take it out, it complained invalid type name for those below:
> v_Rec_Num cidr_staging.stg_i864.receipt_number%type;
> v_Dat_Ent cidr_staging.stg_i864.date_entered%type;
> v_Seq_Num cidr_staging.stg_i864.sequence_number%type;

Works fine for me:

CREATE TABLE laurenz.test(id integer);

DO $$DECLARE
t laurenz.test.id%TYPE;
BEGIN
t := 1;
END;$$;

You should probably share the rest of your code + the exact error messages
so we can spot the error.

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2018-11-10 10:08:17 Modules but not extensions
Previous Message Pepe TD Vo 2018-11-09 13:12:45 Re: %rowtype