This is a discussion on Foreign Keys - advantage ? within the MySQL forums, part of the Database Server Software category; --> As a newbie to SQL I guess the only advantage I can see of setting up Foreign Keys is ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| NA news wrote: > As a newbie to SQL I guess the only advantage I can see of setting up > Foreign Keys is to help ensure you don't get left with 'orphan' rows, > right ? > TIA, > Nick A Things like "cascade on delete" save programming |
| ||||
| On 20.02.2007 22:09, Paul Lautman wrote: > NA news wrote: >> As a newbie to SQL I guess the only advantage I can see of setting up >> Foreign Keys is to help ensure you don't get left with 'orphan' rows, >> right ? >> TIA, >> Nick A > > Things like "cascade on delete" save programming .... and make the DB maintain consistency automatically. robert |
| Thread Tools | |
| Display Modes | |
|
|