Re: Inserting Data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inserting Data
Date: 2006-08-23 23:05:26
Message-ID: 25561.1156374326@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley <rjpawley(at)shaw(dot)ca> writes:
> insert into p_id.loops (monitor) values (new.devices_id)
> where new.device_number = library.devices.device_number
> and library.devices.type_ = 'mon' ;

Huh? How did library.devices get into this? Are you trying to join to
it, and if so why, seeing that the value you want to insert into
p_id.loops is independent of that table?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-08-23 23:10:22 Re: CASCADING could not open relation with OID
Previous Message Frank Cohen 2006-08-23 23:04:31 XPath and XML support