Re: odd error...

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: "alex b(dot)" <mailinglists1(at)gmx(dot)de>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: odd error...
Date: 2003-05-10 21:55:26
Message-ID: m31xz6lb5d.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"alex b." <mailinglists1(at)gmx(dot)de> writes:

> CREATE TABLE tmp3 (
>
> datname VARCHAR(255),
> title VARCHAR(100),
> artist VARCHAR(100),
> album VARCHAR(100),
> mp3checksum CHAR(32),
> CONSTRAINT md5
> FOREIGN KEY (mp3checksum)
> REFERENCES tcontent (mp3checksum)
> ON DELETE CASCADE
> );
>
> NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY
> check(s)
> ERROR: UNIQUE constraint matching given keys for referenced table
> "tcontent" not found
>
> what am I doing wrong here?

Column "mp3checksum" of table "tcontent" needs a UNIQUE
constraint--does it have one?

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message alex b. 2003-05-10 22:03:26 Re: odd error...
Previous Message alex b. 2003-05-10 21:51:48 odd error...