From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Randall Barber <rdb55(at)email(dot)byu(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Quotes in SQL |
Date: | 2002-05-14 01:31:03 |
Message-ID: | 20020514113103.B8900@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, May 13, 2002 at 02:49:47PM -0600, Randall Barber wrote:
> Hi--I'm completely new to PostGres... From what I read in the documentation, sql here is same as there.
>
> SELECT * FROM FOO.BAR WHERE FOO.BAR.BAZ='1234';
>
> However, I just finished building my own PostGres and when I try to use it, I have to do stuff like this:
>
> SELECT * FROM "FOO"."BAR" WHERE "FOO"."BAR"."BAZ" = '1234';
>
> Is this a Postgres thing? Or did I compile it wrong? Or is it an option to create_db?
That's normal. If you use quotes when you create the table, you (usually)
need quotes when accessing the fields. If you don't use quotes when creating
the table, you don't need them when accessing.
HTH,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Canada, Mexico, and Australia form the Axis of Nations That
> Are Actually Quite Nice But Secretly Have Nasty Thoughts About America
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-05-14 01:36:16 | Re: Configure problems with readline Mandrake 8.2 and postgres 7.2.1 |
Previous Message | Martijn van Oosterhout | 2002-05-14 01:29:06 | Re: Can This be done |