Error in Adding All Tables

Поиск
Список
Период
Сортировка
Искать

Error in Adding All Tables

От:
salman Sheikh <salman_sheikh@web.de>
Дата:


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

i need help from u ppl. I am using Visual C++ 2005 and postgresql 8.3.

thanks
Sheikh

Psssst! Schon vom neuen WEB.DE MultiMessenger geh&oum l;rt?    
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123  



Run, Fatboy, Run" sowie "Rails & Ties" kostenlos anschauen!   
Blockbuster-Gutscheine sichern unter http://www.blockbuster.web.de  

Re: [GENERAL] Error in Adding All Tables

От:
justin <justin@emproshunts.com>
Дата:
 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

i need help from u ppl. I am using Visual C++ 2005 and postgresql 8.3.

thanks
Sheikh

Psssst! Schon vom neuen WEB.DE MultiMessenger geh&oum l;rt?    
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123  


Without looking at the sql statement you are using its kinda hard to know what the problem is

but ambiguous column means the Postgresql can't figure out what you want to do as the column shows up twice in a command.


Re: [GENERAL] Error in Adding All Tables

От:
"Joshua D. Drake" <jd@commandprompt.com>
Дата:
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.

Joshua D. Drake
FAQ