X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6C86C474E42 for ; Tue, 6 May 2003 05:57:03 -0400 (EDT) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by postgresql.org (Postfix) with ESMTP id 95D2A476488 for ; Tue, 6 May 2003 05:57:01 -0400 (EDT) Received: from matrix.gatewaynet.com (localhost [127.0.0.1]) by matrix.gatewaynet.com (8.12.5/8.12.5) with ESMTP id h46F141s022324; Tue, 6 May 2003 13:01:04 -0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.5/8.12.5/Submit) with ESMTP id h46F14Ww022320; Tue, 6 May 2003 13:01:04 -0200 Date: Tue, 6 May 2003 13:01:04 -0200 (GMT+2) From: Achilleus Mantzios To: Rado Petrik Cc: PostgreSQL-mailinglist Subject: Re: Problem with Attribute. In-Reply-To: <1052212666.551.29.camel@caj> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-38.4 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES,SIGNATURE_LONG_DENSE, USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/77 X-Sequence-Number: 13242 On 6 May 2003, Rado Petrik wrote: > Hi , > > I have table picture_path. > > > 1. Step one. Write query to psql. > > > power2=# select * from picture_path ; > > retur: > > id_path | p_path | count > ---------+--------+-------- > (0 rows) > > > 2. Step two. Write query. > > power2=# select count from picture_path; > > return: > > ERROR: Attribute 'count' not found > power2=# > > Why ? maybe you need select "count " from picture_path; > > > This is dump table picture_path. > > CREATE TABLE "picture_path" ( > "id_path" int4 DEFAULT nextval('"picture_path_id_path_seq"'::text) > NOT NULL, > "p_path" varchar(20) NOT NULL, > "count " int2 NOT NULL > ); > > > Thanks. > - > Rado Petrik > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- ================================================================== Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt Nikis 4, Glyfada Athens 16610 Greece tel: +30-210-8981112 fax: +30-210-8981877 email: achill@matrix.gatewaynet.com mantzios@softlab.ece.ntua.gr