foreign key
ciao
sono nuovo
non riesco a far ripettare l'integrità referenziale in una tabella. maledizione! questo lo stato di fatto:
*************************************************************
create table padre(
chiaveprimaria int,
primary key(chiaveprimaria)
)
create table figlia(
chiaveprimaria int
chiavesterna int,
foreign key (chiavesterna) references padre (chiaveprimaria)
)
**************************************************************
Cosa succede se inserisco un valore nel campo chiavesterna della tabella figlia che non esiste nel campo chiaveprimaria della tabella padre? Non dovrei ricevere un messaggio di errore da Mysql. E invece no!!!
che ne pensate?
grazie infinite
Subject
Views
Written By
Posted
foreign key
8268
December 02, 2006 03:29AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.