| From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
|---|---|
| To: | Cornelio Royer Climent <cornelioroyer(at)hotmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: message errror |
| Date: | 2010-07-17 13:22:36 |
| Message-ID: | 4C41AE9C.4020906@iol.ie |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 17/07/2010 14:16, Cornelio Royer Climent wrote:
> CREATE TABLE security_info2 (
>
> window character varying(64) NOT NULL
>
> );
>
> ERROR: syntax error at or near "window"
>
> LINE 2: window character varying(64) NOT NULL
"window" is a reserved word:
http://www.postgresql.org/docs/8.4/static/sql-keywords-appendix.html
Just call your column something else and it should work. Alternatively,
you could enclose the column name in double-quotes -
"window" character varying(64)....
- but then you'll have to remember to quote it *every* time it is
referenced in queries or elsewhere.
Ray.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Devrim GÜNDÜZ | 2010-07-17 14:01:35 | Re: Fedora 13 killed dblink this week... |
| Previous Message | Cornelio Royer Climent | 2010-07-17 13:16:28 | message errror |