Re: Attribute 'name' not found

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Mario Henley Becerril Geldis <henley(at)uaemex(dot)mx>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Attribute 'name' not found
Date: 2002-08-17 02:19:32
Message-ID: 20020816191807.D4806-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 16 Aug 2002, Mario Henley Becerril Geldis wrote:

> I don't known why postgreSQL send this error:
>
> test=# \d addresses
> Table "addresses"
> Column | Type | Modifiers
> --------+------+-----------
> Name | text |
> Phone | text |
> Email | text |
>
> test=# select Name from addresses;
> ERROR: Attribute 'name' not found

> any ideas..???

You probably created the table with the
column name double quoted ("Name"). If
you do so, you'll need to refer to the
column with double quotes from that point
forward (the identifier without quotes
gets case folded to lowercase - note
the error message)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message dinakar 2002-08-17 06:08:21 Need your invaluable help....!
Previous Message Mario Henley Becerril Geldis 2002-08-17 01:36:36 Attribute 'name' not found