Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2A44847582C for ; Mon, 12 Aug 2002 14:11:07 -0400 (EDT) Received: from gateway.idealcorp.com (66-192-27-146.gen.twtelecom.net [66.192.27.146]) by postgresql.org (Postfix) with ESMTP id 652A0475476 for ; Mon, 12 Aug 2002 14:11:06 -0400 (EDT) Received: from idealcorp.com (client07.office.ideal [192.168.1.17]) by gateway.idealcorp.com (8.12.3/8.12.3/Debian -4) with ESMTP id g7CIB6Gd012086 for ; Mon, 12 Aug 2002 14:11:06 -0400 Message-ID: <3D57FA3A.1010609@idealcorp.com> Date: Mon, 12 Aug 2002 14:11:06 -0400 From: Michael Zouroudis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: problem with my insert Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/119 X-Sequence-Number: 5234 thank you for answering my question. it didn't work quite as expected though. the insert statement just doesn't want to work. what i ended up doing is using a select into statement to assign variables to both ids', like this; select currval (''mom_mom_id_seq'') into x; select currval (''dad_dad_id_seq'')into y; raise notice ''last value of mom_id %'' x; raise notice ''last value of dad_id %'' y; this returns a value for both x and y. when an insert statement is added though; insert into mom_dad(mom_id, dad_id) values (x, y); i get an error message that says there is a parse error at or near $1. i suppose the argurment causing the error is the insert, since this message does not come up when i comment it out. if i'm doing something wrong, i don't know what. please help. thanks again in advance, mike zouroudis -- Mike Zouroudis Intern __________________________________________________ I.D.E.A.L. Technology Corporation - Orlando Office http://www.idealcorp.com - 407.999.9870 x14 --