Re: there is no unique constraint matching given keys for referenced table

From: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
To: Víctor Pérez Juárez <victor(dot)perez(at)e-evolution(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: there is no unique constraint matching given keys for referenced table
Date: 2005-11-17 19:14:59
Message-ID: m3hdabcci4.fsf@conexa.fciencias.unam.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Víctor Pérez Juárez <victor(dot)perez(at)e-evolution(dot)com> writes:

> Hola Lista!
>
> alguien sabe como resolver este error que me envia PostgreSQL.
>
> ERROR: there is no unique constraint matching given keys for referenced
> table "ad_system"
> ERROR: relation "ad_system" does not exist
> NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
> "ad_system_pkey" for table "ad_system"

El primer error te dice que no tienes una llave primaria en una tabla
que estas referenciando por medio de una llave foránea. El segundo te
dice que no existe una tabla llamada ``ad_system'', aunque esto muy
probablemente ya lo sabias.

Mejor explicanos que estas haciendo con todo y código para ver como
solucionarlo en vez de presentarnos errores cuyo significado puedes
fácilmente deducir del mensaje de error.

Saludos,
Manuel.

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Víctor Pérez Juárez 2005-11-17 19:17:05 there is no unique constraint matching given keys for referenced table
Previous Message Manuel Sugawara 2005-11-17 19:06:08 Re: Fwd: Ayuda encoding en postgres 8.0