Lists: | pgsql-sql |
---|
From: | Irina Gadassik <igadassik(at)standardbredcanada(dot)ca> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | pg reserved words |
Date: | 2006-02-22 15:27:54 |
Message-ID: | 6.0.0.22.2.20060222102449.028482b0@messaging.ca.mci.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-sql |
Hello,
I need some help.
I am trying to create a table freeze and it seems "freeze" is a reserved
word, but I don't see it in
the list. Also in a different table I cann't create a column freeze.
However it is possible in MySQL and Ingres.
Thank you,
Irina
From: | Michael Glaesemann <grzm(at)myrealbox(dot)com> |
---|---|
To: | Irina Gadassik <igadassik(at)standardbredcanada(dot)ca> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: pg reserved words |
Date: | 2006-03-01 03:05:58 |
Message-ID: | 5C37DA9C-6DFD-4E0F-9B05-EF6DEBE62F68@myrealbox.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-sql |
On Feb 23, 2006, at 0:27 , Irina Gadassik wrote:
> I am trying to create a table freeze and it seems "freeze" is a
> reserved word, but I don't see it in
> the list. Also in a different table I cann't create a column freeze.
http://www.postgresql.org/docs/current/interactive/sql-keywords-
appendix.html
I see FREEZE right between FREE and FROM. It's not an SQL keyword,
but it is used in PostgreSQL withe VACUUM command.
http://www.postgresql.org/docs/current/interactive/sql-vacuum.html
Hope this helps.
Michael Glaesemann
grzm myrealbox com
From: | Markus Schaber <schabi(at)logix-tt(dot)com> |
---|---|
To: | Irina Gadassik <igadassik(at)standardbredcanada(dot)ca> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: pg reserved words |
Date: | 2006-03-10 13:09:57 |
Message-ID: | 44117AA5.2020801@logix-tt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-sql |
Hi, Irina,
Irina Gadassik wrote:
> I am trying to create a table freeze and it seems "freeze" is a reserved
> word, but I don't see it in
> the list. Also in a different table I cann't create a column freeze.
> However it is possible in MySQL and Ingres.
It is a PostgreSQL specific reserved word, see
http://www.postgresql.org/docs/current/interactive/sql-keywords-appendix.html
However, it is possible to use it quoted:
postgres=# create table freeze (foo int);
ERROR: syntax error at or near "freeze" at character 14
LINE 1: create table freeze (foo int);
^
postgres=# create table "freeze" (foo int);
CREATE TABLE
postgres=# select * from "freeze";
foo
-----
(0 rows)
postgres=# DROP TABLE "freeze" ;
DROP TABLE
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org