pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gnanavel Shanmugam <s.gnanavel@inbox.com>
To: sanskar soni <sanskar.sony@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: nemeric table names
Date: Mon, 27 Jun 2005 01:33:50 -0800
Message-ID: <8CF67941192.0000006As.gnanavel@inbox.com> (raw)
In-Reply-To: <b9ea067d05062701061ecaaa21@mail.gmail.com>

double quote the table name as
create table "123" (
...
)

The table can be accessed only with double quotes.

with regards,
S.Gnanavel


> -----Original Message-----
> From: sanskar.sony@gmail.com
> Sent: Mon, 27 Jun 2005 13:36:46 +0530
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] nemeric table names
>
> Hi all I want to create table  in my database, But the table name must
> begin from numric value.
> Such As:
> CREATE TABLE 123 (
> name                 VARCHAR(20),
> phone                 CHAR(20)
> );
>
> When i do this i got error message. Bottomline is that i want table
> name starting with numeric value. Can anyone let me know how to do
> this in postgresql?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings


view thread (2+ messages)

Message-ID: <8CF67941192.0000006As.gnanavel@inbox.com>
Permalink:  ../8CF67941192.0000006As.gnanavel@inbox.com/
Also on:    postgresql.org/message-id/8CF67941192.0000006As.gnanavel@inbox.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: s.gnanavel@inbox.com, sanskar.sony@gmail.com
  Subject: Re: nemeric table names
  In-Reply-To: <8CF67941192.0000006As.gnanavel@inbox.com>
  References: <b9ea067d05062701061ecaaa21@mail.gmail.com> <8CF67941192.0000006As.gnanavel@inbox.com>

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

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