Skip site navigation (1) Skip section navigation (2)

Re: Consulta Foreign Key

From: Martin Marques <martin(at)marquesminen(dot)com(dot)ar>
To: Juan Manuel Fernandez <jmfernandez(at)unlu(dot)edu(dot)ar>
Cc: Lista - PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Consulta Foreign Key
Date: 2008-04-29 01:59:36
Message-ID: 48168108.8080900@marquesminen.com.ar (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Juan Manuel Fernandez escribió:
> Hasta que lo que yo se una foreign key debe reflejar algun valor que
> este en la tabla que referencia o debe ser nula...
> 
> Que esta pasando? ya estoy mareado :(
> 
> Warning: pg_query() [function.pg-query]: Query failed: ERROR: insert
> or update on table "t_asignaturas_dictadas" violates foreign key
> constraint "fkc_reglamentan0002" DETAIL: Key (nro_disposicion)=() is
> not present in table "t_programas". in C:\xampp\htdocs\alta_oferta.php
> on line 49
  Mira los logs de PostgreSQL, no los de PHP.

In response to

pgsql-es-ayuda by date

Next:From: Martin MarquesDate: 2008-04-29 02:03:44
Subject: Re: Consulta Foreign Key
Previous:From: william diazDate: 2008-04-28 23:54:03
Subject: Re: Herramienta Case

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group