ERROR: column "gid" specified more than once

From: BahramPSQL <bahramjomezade(dot)gis92(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: ERROR: column "gid" specified more than once
Date: 2015-05-12 08:31:11
Message-ID: 1431419471426-5848845.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I want to run a spatial query from two table!

CREATE TABLE "BorujerdDistCent" as
SELECT
*, st_distance(st_centroid("Lorestan".geometry),"Borujerd".geometry)/1000
as DistFromCntroid
FROM "Borujerd", "Lorestan"
Where "Lorestan"."Shahrestan" = 'بروجرد'
ORDER BY
"Borujerd".abady_name ASC

But i will see this error!
ERROR: column "gid" specified more than once
********** Error **********

ERROR: column "gid" specified more than once
SQL state: 42701

--
View this message in context: http://postgresql.nabble.com/ERROR-column-gid-specified-more-than-once-tp5848845.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David G. Johnston 2015-05-12 15:07:23 Re: ERROR: column "gid" specified more than once
Previous Message Andreas Joseph Krogh 2015-05-07 19:52:03 Re: generating json without nulls