Re: syntax error with example sql of createtable

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Honda Shigehiro <fwif0083(at)mb(dot)infoweb(dot)ne(dot)jp>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: syntax error with example sql of createtable
Date: 2005-01-05 18:03:26
Message-ID: 200501051803.j05I3Qr26040@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs


Thanks. Changed to 'array_int'.

---------------------------------------------------------------------------

Honda Shigehiro wrote:
> Hello,
>
> I got a error when execute below command in
> http://developer.postgresql.org/docs/postgres/sql-createtable.html
>
> postgres=# CREATE TABLE array (vector int[][]);
> ERROR: syntax error at or near "array" at character 14
> LINE 1: CREATE TABLE array (vector int[][]);
>
> ^
> (I tried it on 8.0.0rc2.)
>
> 'array' is a reserved word, so it needs quote to create table
> named array:
> postgres=# CREATE TABLE "array" (vector int[][]);
> CREATE TABLE
>
> regards,
> -- Shigehiro Honda
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Kris Jurka 2005-01-06 03:05:15 FAQ on oids is out of date.
Previous Message Honda Shigehiro 2005-01-05 17:24:07 syntax error with example sql of createtable