From: | Shachar Shemesh <psql(at)shemesh(dot)biz> |
---|---|
To: | "Oudenhoven, Timothy L" <Timothy(dot)L(dot)Oudenhoven(at)uwsp(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Parenthesis in Queries |
Date: | 2004-05-04 06:17:14 |
Message-ID: | 4097356A.1010808@shemesh.biz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oudenhoven, Timothy L wrote:
>Is there a way to turn off the need to use parenthesis in queries for table names etc. I have seen in some documentation examples that parenthesis are not used in the queries. In my install of postgre 7.4 I get an error when I do not use them.
>
>Example with parenthesis which works in my build
>select * from portal."User"
>
>where I would like to use
>select * from portal.User
>
>Thanks
>Tim
>
>
>
>
Yes, sortof.
Just define all of your table and column names to be in lowercase.
Postgresql is sortof SQL standard here, in that names in quotes are
case-sensitive, and names without quotes give the illusion of case
insensitivity by turning them all into lowercase.
The deviation from the standard is because the standard dictates
"UPPERCASE". If you were to try the same thing on Oracle, my advice
would be "define all of your table and column names to be uppercase".
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting
http://www.lingnu.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Michelle Konzack | 2004-05-04 06:28:06 | Re: Pop 3 Emails to Postgresql |
Previous Message | Shachar Shemesh | 2004-05-04 06:13:44 | Re: Mixed Case column names (php 4.3.5 & pg 7.4.2) |