Re: nemeric table names

From: Gnanavel Shanmugam <s(dot)gnanavel(at)inbox(dot)com>
To: sanskar soni <sanskar(dot)sony(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: nemeric table names
Date: 2005-06-27 09:33:50
Message-ID: 8CF67941192.0000006As.gnanavel@inbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(dot)sony(at)gmail(dot)com
> Sent: Mon, 27 Jun 2005 13:36:46 +0530
> To: pgsql-admin(at)postgresql(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2005-06-27 09:45:43 Re: DRDB?
Previous Message sanskar soni 2005-06-27 08:06:46 nemeric table names