Re: underscore problem

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "postgresql" <pgsql(at)symcom(dot)com>, "PgSQL-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: underscore problem
Date: 2001-02-27 13:32:32
Message-ID: 003701c0a0c1$be4e2ae0$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

From: "postgresql" <pgsql(at)symcom(dot)com>

> Is there anywhere in the docs that says we should not use an
> underscore in a table name?
>
> select acode from FC_Client_Info where jobno = '1234';
> fails with a warning that fc_client_info does not exist
> notice the lower case. If I quote the table
>
> select acode from "FC_Client_Info" where jobno = '1234';
> the select works fine

It's the case not the underscore. PG lower-cases table/field names both on
creation and on queries. You can create/access mixed-case tables by quoting
them, as you've discovered.

This usually crops up converting from a different DB to Postgresql.

- Richard Huxton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-02-27 16:40:21 Re: DLookup('field', 'table', ['condition'])
Previous Message postgresql 2001-02-27 12:43:11 underscore problem