Re: creating a view from multiple tables (13 tables)

From: "M(dot) Bastin" <marcbastin(at)mindspring(dot)com>
To: Kumar S <ps_postgres(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: creating a view from multiple tables (13 tables)
Date: 2004-09-24 22:04:13
Message-ID: a06110404bd7a4994966d@[192.168.0.243]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

>psql:/home/../temp/postgres/marray2/view.sql:58:
>ERROR: column reference "fc_probe_set_id" is ambiguous

You have to use the "table.column" notation. E.g.
"table12.fc_probe_set_id" instead of just "fc_probe_set_id"

Cheers,

Marc

>In my case every table (13 numbers) has 20 columns and
>column names are identical.
>In the select statement it is difficult to specify
>every table name . column name and do this for 20
>times for every chip.

You obviously have to; since all column names are identical how could
you hope PostgreSQL to be sure which table you mean?

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Garris, Nicole 2004-09-24 22:57:00 Re: creating a view from multiple tables (13 tables)
Previous Message V i s h a l Kashyap @ [Sai Hertz And Control Systems] 2004-09-24 21:49:34 List of PL languages in PostgreSQL