| From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
|---|---|
| To: | Cristian Prieto <cristian(at)clickdiario(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Help with queries... |
| Date: | 2005-02-24 21:02:17 |
| Message-ID: | 421E40D9.2090705@commandprompt.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)fuhr(dot)org>
> To: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
> Cc: <pgsql-general(at)postgresql(dot)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(at)commandprompt(dot)com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
| Attachment | Content-Type | Size |
|---|---|---|
| jd.vcf | text/x-vcard | 285 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2005-02-24 21:20:03 | Re: Pg 8.01 big trouble with LIMIT (bug !?) |
| Previous Message | Charl Gerber | 2005-02-24 21:00:46 | Newbie: help with FUNCTION |