Re: help with serial type

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: "Joel Burton" <jburton(at)scw(dot)org>
Cc: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: help with serial type
Date: 2001-04-26 19:25:37
Message-ID: 011501c0ce86$dc1d2150$7889ffcc@comstock.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ahhh, but I didn't use a double quote identifier. This statement worked fine
for me:

CREATE TABLE atable (
title VARCHAR(20),
name VARCHAR(20),
id SERIAL PRIMARY KEY,
date DATE);

Greg

----- Original Message -----
From: "Joel Burton" <jburton(at)scw(dot)org>
To: "Gregory Wood" <gregw(at)com-stock(dot)com>
Cc: "Poul L. Christiansen" <poulc(at)cs(dot)auc(dot)dk>; "PostgreSQL-General"
<pgsql-general(at)postgresql(dot)org>
Sent: Thursday, April 26, 2001 2:45 PM
Subject: Re: help with serial type

> On Thu, 26 Apr 2001, Gregory Wood wrote:
>
> > > I don't know if you can name a column "date" because I think it's a
> > > reserved word.
> >
> > Oddly enough, it *does* work (at least on my version of 7.1), although I
> > would recommend against doing it if for no other reason than it's
confusing.
>
> If you wrap them in double-quotes, you can use most reserved words as
> system identifiers. But I wouldn't -- some cheesy client implementation
> might choke on them, and better to not find that out later.
>
> --
> Joel Burton <jburton(at)scw(dot)org>
> Director of Information Systems, Support Center of Washington
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jie Liang 2001-04-26 19:29:22 Re: random rows
Previous Message V. M. 2001-04-26 19:24:02 Re: Re: unanswered: Schema Issue