pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Zouroudis <mzouroudis@idealcorp.com>
To: pgsql-admin@postgresql.org
Subject: problem with my insert
Date: Mon, 12 Aug 2002 14:11:06 -0400
Message-ID: <3D57FA3A.1010609@idealcorp.com> (raw)


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
-- 





Message-ID: <3D57FA3A.1010609@idealcorp.com>
Permalink:  ../3D57FA3A.1010609@idealcorp.com/
Also on:    postgresql.org/message-id/3D57FA3A.1010609@idealcorp.com

 · 

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-admin@postgresql.org
  Cc: mzouroudis@idealcorp.com
  Subject: Re: problem with my insert
  In-Reply-To: <3D57FA3A.1010609@idealcorp.com>
  References: <3D57FA3A.1010609@idealcorp.com>

* 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