pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feednemeric table names
2+ messages / 2 participants
[nested] [flat]
* nemeric table names
@ 2005-06-27 08:06 sanskar soni <sanskar.sony@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: sanskar soni @ 2005-06-27 08:06 UTC (permalink / raw)
To: pgsql-admin
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?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: nemeric table names
@ 2005-06-27 09:33 Gnanavel Shanmugam <s.gnanavel@inbox.com>
parent: sanskar soni <sanskar.sony@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Gnanavel Shanmugam @ 2005-06-27 09:33 UTC (permalink / raw)
To: sanskar soni <sanskar.sony@gmail.com>; 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.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-06-27 09:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-27 08:06 nemeric table names sanskar soni <sanskar.sony@gmail.com>
2005-06-27 09:33 ` Gnanavel Shanmugam <s.gnanavel@inbox.com>
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