Re: Error in Adding All Tables

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Error in Adding All Tables
Date: 2008-11-02 07:30:47
Message-ID: 20081102073047.GA7372@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc

Joshua D. Drake <jd(at)commandprompt(dot)com> schrieb:

> salman Sheikh wrote:
>>
>>
>> Hi freinds,
>> i wanted to add my all tables once in MFC application,
>>
>> i have a databank,which has 11 tables and i want to add them all togather.
>>
>> After Adding all tables, it shows me always this errors by debugging.
>>
>>
>> ERROR: column reference "ctid" is ambiguous;
>> Error while executing the query
>
> This means you did this:
>
> SELECT ctid,ctid from table1, table2
>
> But it doesn't know which ctid belongs to which table. You need to use
> aliases or dotted notation.

For the example above, for instance:

select a.ctid, b.ctid from table1 a, table2 b ... (if you want this
columns)

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joris Dobbelsteen 2008-11-02 18:26:05 Re: Slow query performance
Previous Message Oleg Bartunov 2008-11-02 06:10:49 chinese parser for text search !

Browse pgsql-odbc by date

  From Date Subject
Next Message Zahid Khan 2008-11-04 09:10:25 Behavior change of FK info query
Previous Message Joshua D. Drake 2008-11-02 01:25:28 Re: Error in Adding All Tables