Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsBSK-0006z0-9H for pgsql-sql@arkaria.postgresql.org; Tue, 12 May 2015 14:46:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsBSJ-0002Bg-On for pgsql-sql@arkaria.postgresql.org; Tue, 12 May 2015 14:46:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ys5bN-0003Z5-Nj for pgsql-sql@postgresql.org; Tue, 12 May 2015 08:31:45 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Ys5bK-0000gl-5k for pgsql-sql@postgresql.org; Tue, 12 May 2015 08:31:44 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id DFCD71DFDAF7 for ; Tue, 12 May 2015 01:32:02 -0700 (PDT) Date: Tue, 12 May 2015 01:31:11 -0700 (MST) From: BahramPSQL To: pgsql-sql@postgresql.org Message-ID: <1431419471426-5848845.post@n5.nabble.com> Subject: ERROR: column "gid" specified more than once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org I want to run a spatial query from two table! CREATE TABLE "BorujerdDistCent" as SELECT=20 *, st_distance(st_centroid("Lorestan".geometry),"Borujerd".geometry)/1000 as DistFromCntroid FROM "Borujerd", "Lorestan" Where "Lorestan"."Shahrestan" =3D '=D8=A8=D8=B1=D9=88=D8=AC=D8=B1=D8=AF' 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. --=20 Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql