| From: | Joe Sunday <sunday(at)csh(dot)rit(dot)edu> |
|---|---|
| To: | Iker Arizmendi <iker(at)research(dot)att(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: ERROR: column 'xxx' does not exist (under v. 7.4.1) |
| Date: | 2004-04-02 19:17:42 |
| Message-ID: | 20040402191741.GA25089@csh.rit.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, Feb 05, 2004 at 10:00:21AM -0500, Iker Arizmendi wrote:
>
> Using psql and running as the owner of the table "app" I
> try to access the columns of the table like so:
>
> SELECT * FROM app;
>
> which returns all the columns in the table including
> the one I'm interested in, which is "companyID".
> If instead I use something like:
>
> SELECT companyID FROM app;
>
> I get the following:
>
> ERROR: column "companyid" does not exist
>
SELECT "companyID" FROM app;
You've stored a case sensitive column name in the table, but
by default Postgres will fold all identifiers to lower case
unless quoted.
--Joe
--
Joe Sunday <sunday(at)csh(dot)rit(dot)edu> http://www.csh.rit.edu/~sunday/
Computer Science House, Rochester Inst. Of Technology
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruno Wolff III | 2004-04-02 19:26:01 | Re: execute function after user connect |
| Previous Message | Alvaro Herrera | 2004-04-02 18:33:31 | Re: Compound keys and foreign constraints |