Re: ERROR: column "gid" specified more than once

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: ERROR: column "gid" specified more than once
Дата
Msg-id CAKFQuwaqLKUkr7Hcp219kVcMb7YmsBjK9qu6tsU7MHC-QyUScg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: column "gid" specified more than once  (Jason Aleski <jason.aleski@gmail.com>)
Ответы Re: ERROR: column "gid" specified more than once  ("ktm@rice.edu" <ktm@rice.edu>)
Список pgsql-sql
On Tuesday, May 12, 2015, Jason Aleski <jason.aleski@gmail.com> wrote:
You probably need to specify your wildcard on both tables.

CREATE TABLE "BorujerdDistCent" as
SELECT
  "Borujerd".*, "Lorestan".*, t_distance(st_centroid("Lorestan".geometry),"Borujerd".geometry)/1000
as DistFromCntroid
FROM "Borujerd", "Lorestan"


My bad on the assumed -bugs list from before...

Anyway, how is this suugestion different from simply saying "*" without a relation specification - which the OP did and it didn't work.

David J.

 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Jason Aleski
Дата:
Сообщение: Re: ERROR: column "gid" specified more than once
Следующее
От: "ktm@rice.edu"
Дата:
Сообщение: Re: ERROR: column "gid" specified more than once