tooheyz
- kmart supervisor -
hey everyone... i'm reduing my databse coz the whole class failed
well anyway, i know what referential integrity is, but how do i enforce it into my database?
for thos who dont know, referential integrity is a set of rules to keep relationships valid... e.g. you cant enter a value in the foreign key is it doesnt exist in the primary key in the primary table...
or if u didnt undestand that...
you cant change the value of a primary key if that record has related records.
well anyway, i know what referential integrity is, but how do i enforce it into my database?
for thos who dont know, referential integrity is a set of rules to keep relationships valid... e.g. you cant enter a value in the foreign key is it doesnt exist in the primary key in the primary table...
or if u didnt undestand that...
you cant change the value of a primary key if that record has related records.