Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gL9pq-0007Zr-Rm for pgsql-admin@arkaria.postgresql.org; Fri, 09 Nov 2018 16:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gL9po-000700-UE for pgsql-admin@arkaria.postgresql.org; Fri, 09 Nov 2018 16:40:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gL9po-0006zt-Ir for pgsql-admin@lists.postgresql.org; Fri, 09 Nov 2018 16:40:40 +0000 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gL9pl-0003Od-A7 for pgsql-admin@postgresql.org; Fri, 09 Nov 2018 16:40:39 +0000 Received: from smtp1.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id CE0C44B0C8; Fri, 9 Nov 2018 17:40:30 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id tNd0zv3V5a9E; Fri, 9 Nov 2018 17:40:29 +0100 (CET) Message-ID: <384b702eb2c1ce3bfb40c290852fc461f9bd24fb.camel@cybertec.at> Subject: Re: %rowtype From: Laurenz Albe To: Pepe TD Vo , Pgsql-admin Date: Fri, 09 Nov 2018 17:40:28 +0100 In-Reply-To: <1072312432.1472810.1541769165531@mail.yahoo.com> References: <1769600488.1326361.1541732091653.ref@mail.yahoo.com> <1769600488.1326361.1541732091653@mail.yahoo.com> <1072312432.1472810.1541769165531@mail.yahoo.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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