Re: last comma inside "CREATE TABLE ()" statements

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Louis-David Mitterrand <vindex(at)apartia(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: last comma inside "CREATE TABLE ()" statements
Date: 2001-04-22 16:08:22
Message-ID: Pine.BSO.4.10.10104221208000.17529-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 22 Apr 2001, Louis-David Mitterrand wrote:

> Is it against the SQL standard to accept a trailing comma in a table
> declaration?
Yes it is.

> CREATE TABLE "currency" (
> currency_id varchar(3),
> rate float, <-------------------- BOOM! parse error
> );
>
> As in perl, it would make life easier to simply ignore/accept a trailing
> comma on table declarations.
Yeah it would, wouldn't it? ;)

-laex

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-22 16:21:49 Re: last comma inside "CREATE TABLE ()" statements
Previous Message Tom Lane 2001-04-22 16:08:02 Re: PostgreSQL 7.1 and Sequences