Re: Foreign key error, please help.

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Kumar S <ps_postgres(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Foreign key error, please help.
Date: 2005-03-08 14:57:15
Message-ID: 20050308065515.P20460@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, 8 Mar 2005, Kumar S wrote:

> INSERT INTO
> processed_data(exp_id,seq_anno_id,cel_id,proc_symbol,proc_exprs,proc_pval)VALUES(
> (currval('experiment_exp_id_seq')),(SELECT
> platform_id from platform where platform_filename =
> 'RGeo-ESHSC-H1ES1-1a-U133A'),(SELECT seq_anno_id FROM
> sequence_annotation, genechip WHERE
> sequence_annotation.seq_probeset_id =
> 'AFFX-r2-Ec-bioB-M_at'AND
> sequence_annotation.genechip_id = genechip.genechip_id
> AND genechip.genechip_array =
> 'U133A'),'AFFX-r2-Ec-bioB-M_at',6.419,0.1671675);

It looks to me like the select platform_id subselect is in the column
position for seq_anno_id not the select seq_anno_id subselect which
doesn't seem to be what's intended.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John DeSoi 2005-03-08 15:58:33 Re: Getting started - Interfacing questions
Previous Message Kumar S 2005-03-08 14:48:14 Foreign key error, please help.