Re: syntax error foreign key

From: Matthew Terenzio <matt(at)jobsforge(dot)com>
To: Matthew Terenzio <matt(at)jobsforge(dot)com>
Cc: PgSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: syntax error foreign key
Date: 2005-08-17 02:09:14
Message-ID: 0b0bd9854d15a9af6f3c866f0de7e579@jobsforge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Aug 16, 2005, at 9:37 PM, Matthew Terenzio wrote:

> db=# ALTER TABLE ONLY table ADD CONSTRAINT "$1" FOREIGN KEY (user)
> REFERENCES users(user_id);
> ERROR: syntax error at or near "user" at character 56
>
> I'm either blind or something besides syntax can cause this error. no?
>
>

changed the field name to userid and it;s fine. Can't user the word
user for field that references?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-08-17 02:31:15 Re: syntax error foreign key
Previous Message Kevin Murphy 2005-08-17 01:43:08 Re: table clustering brings joy