Re: problems with CREATE TABLE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Martin A(dot) Marques" <martin(at)math(dot)unl(dot)edu(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problems with CREATE TABLE
Date: 2000-11-22 22:59:04
Message-ID: Pine.LNX.4.21.0011222358170.1093-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martin A. Marques writes:

> CREATE TABLE ubicacion (
> id SERIAL,
> id_palabra INT,
> tabla INT NOT NULL,
> id_row INT NOT NULL,
> CONSTRAINT "fk_ubic_id_palabra" FOREIGN KEY id_palabra
> REFERENCES palabras ("pid"),

... FOREIGN KEY (id_palabra) REFERENCES ...

> CONSTRAINT "fk_tabla_s" FOREIGN KEY tabla REFERENCES tablas
> ("id_tabla")
> );

> ERROR: parser: parse error at or near "id_palabra"

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-11-23 00:51:50 Re: Weird table permission stuff.
Previous Message GH 2000-11-22 22:35:34 Weird table permission stuff.