Search Postgresql Archives

Re: message errror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux