| From: | "Mitch Vincent" <mitch(at)venux(dot)net> |
|---|---|
| To: | <newsreader(at)mediaone(dot)net>, <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: very odd behavior |
| Date: | 2001-05-10 18:21:13 |
| Message-ID: | 007e01c0d97d$ff377da0$1251000a@windows |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
desc is a reserved keyword (used in ORDER BY to indicate descending order)..
You can use keywords as field names though you have to put the in quotes (as
you found out!).
-Mitch
----- Original Message -----
From: <newsreader(at)mediaone(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Thursday, May 10, 2001 2:08 PM
Subject: very odd behavior
> I have 7.1
>
> Can someone take a look the following
> and tell me why I'm getting errors?
> I'm completely baffled!
> ----------------------------
>
> what=> create table bla(desc text,def text,data text);
> ERROR: parser: parse error at or near "desc"
> what=> create table bla("desc" text,def text,data text);
> CREATE
> what=>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Creager, Robert S | 2001-05-10 18:26:53 | RE: very odd behavior |
| Previous Message | David Wheeler | 2001-05-10 18:18:56 | Custom Constraint |