public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: Honda Shigehiro <[email protected]>
Cc: [email protected]
Subject: Re: syntax error with example sql of createtable
Date: Wed, 5 Jan 2005 13:03:26 -0500 (EST)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>


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
  [email protected]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: syntax error with example sql of createtable
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox