«« ( Date ) »» // «« ( Thread ) »» // ri4st - 2004

Re: MySQL i referencijalni integritet

by Mihajlo Ristic
petak, 14. maj 2004 - 01:47.

Pa vidi na netu, care. Referencijalni integritet imas samo ako stavis da
su tabele innodb tipa (default je myisam pa ti vidi, a erwin je budjav:),
a nisam siguran da to mozes da podesavas u erwinu (bar u nekoj staroj
verziji). anyways, google, pa kucaj mysql referential integrity i dobijes
10000 stranica korisnog stiva, procitaj prvih nekoliko i umeces sam da
dopunis erwinovu shemu. Citat sa druge stranice sa googlea:
Strictly speaking, for a field to be a foreign key, it needs to be defined
as such in the database definition. You can 'define' a foreign key in any
MySQL table type (including the default MyISAM table type), but they do
not actually do anything - they are only used to enforce referential
integrity in InnoDB tables.
Pozdrav,
Mihajlo