Re: Help with queries... - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Help with queries...
Date
Msg-id 421E40D9.2090705@commandprompt.com
Whole thread Raw
In response to Re: Help with queries...  ("Cristian Prieto" <cristian@clickdiario.com>)
List pgsql-general
>
> But my table name Grupos is not a reserved keyword, so SELECT * FROM
> Grupos; should work, right??? but guess what... It doesn't work too...
> I need to pass SELECT * FROM "Grupos";

That is correct. Because you have a capital letter in the table name.

Sincerely,

Joshua D. Drake



>
>
>
> ----- Original Message ----- From: "Michael Fuhr" <mike@fuhr.org>
> To: "Cristian Prieto" <cristian@clickdiario.com>
> Cc: <pgsql-general@postgresql.org>
> Sent: Thursday, February 24, 2005 2:44 PM
> Subject: Re: [GENERAL] Help with queries...
>
>
>> On Thu, Feb 24, 2005 at 02:33:28PM -0600, Cristian Prieto wrote:
>>
>>> select * from users;
>>> ERROR:  relation "users" does not exist
>>>
>>> but:
>>> select * from "Users";
>>> returns all the data I want...
>>
>>
>> See "Identifiers and Keywords" in the "SQL Syntax" chapter of the
>> documentation, especially the parts that talk about case and quoting:
>>
>> http://www.postgresql.org/docs/8.0/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS
>>
>>
>> --
>> Michael Fuhr
>> http://www.fuhr.org/~mfuhr/
>>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings



--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL


Attachment

pgsql-general by date:

Previous
From: Charl Gerber
Date:
Subject: Newbie: help with FUNCTION
Next
From: Bruce Momjian
Date:
Subject: Re: Pg 8.01 big trouble with LIMIT (bug !?)