Re: record datatype comparisons

Поиск
Список
Период
Сортировка
Искать
От
Volkan YAZICI
Тема
Re: record datatype comparisons
Дата
Msg-id
20061031215808.GD1911@alamut
Ответ на
Список
Дерево обсуждения
Round Numeric Type "Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>
Re: Round Numeric Type Andrew Sullivan <ajs@crankycanuck.ca>
Re: Round Numeric Type "Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>
record datatype comparisons "George Pavlov" <gpavlov@mynewplace.com>
Re: record datatype comparisons Andrew Sullivan <ajs@crankycanuck.ca>
Re: record datatype comparisons Volkan YAZICI <yazicivo@ttnet.net.tr>
Re: record datatype comparisons Andrew Sullivan <ajs@crankycanuck.ca>
Re: record datatype comparisons Volkan YAZICI <yazicivo@ttnet.net.tr>
Re: record datatype comparisons Andrew Sullivan <ajs@crankycanuck.ca>
Re: record datatype comparisons "George Pavlov" <gpavlov@mynewplace.com>
Re: record datatype comparisons Alvaro Herrera <alvherre@commandprompt.com>
Re: record datatype comparisons Volkan YAZICI <yazicivo@ttnet.net.tr>
Re: record datatype comparisons Andrew Sullivan <ajs@crankycanuck.ca>
On Oct 31 06:49, Alvaro Herrera wrote:
> George Pavlov wrote:
> > thanks fo the reply. i was misled by pgAdmin (1.6) giving both as
> > "record" in the datatype (i thought "row" and "?column?" were just "best
> > guess" column headers). 
> > 
> > so, if they are indeed differently shaped is there any way to make them
> > be the same shape?
> > 
> > note that this one also fails with the same error (one would think these
> > are the "same shape"):
> > 
> > select 
> >   (select (1,2)) 
> > is distinct from 
> >   (select (1,2)) 
> > ;
> 
> This one works:
> 
> alvherre=# select
>   row(1,2)
> is distinct from
>   row(1,2)
> ;
>  ?column? 
> ----------
>  f
> (1 fila)

What's the difference between "SELECT (1, 2);" and "SELECT ROW(1, 2);"?


Regards.

В списке pgsql-sql по дате отправления
От: Alvaro Herrera
Дата:
От: Curtis Scheer
Дата:
Сообщение: Re: Table Relationships
FAQ