J2ME-J2EE
For highly professional eople
Sumit Bhasin
16 Oct 2007
<a href=http://www.glitter-works.net/myspace/text_generator.php target=_blank><img src=http://text.glitter-graphics.net/gold/s.gif border=0><img src=http://text.glitter-graphics.net/gold/u.gif border=0><img src=http://text.glitter-graphics.net/gold/m.gif border=0><img src=http://text.glitter-graphics.net/gold/i.gif border=0><img src=http://text.glitter-graphics.net/gold/t.gif border=0><img src=http://dl3.glitter-graphics.net/empty.gif width=20 border=0><img src=http://text.glitter-graphics.net/gold/b.gif border=0><img src=http://text.glitter-graphics.net/gold/h.gif border=0><img src=http://text.glitter-graphics.net/gold/a.gif border=0><img src=http://text.glitter-graphics.net/gold/s.gif border=0><img src=http://text.glitter-graphics.net/gold/i.gif border=0><img src=http://text.glitter-graphics.net/gold/n.gif border=0></a>
Advantage and Disadvantage of Foreign key
16 Oct 2007
If constraints are stored in the DB then:
advantages
1) if the application programmer forgets or does not know about the
rule the database will still protect the data
2) the db is usually very efficient at checking the constraints,
usually more so than the application
3) PK, UK, and FK defined in the database serve as a form of
documentation about the relationships between the tables
right now.
advantages
1) if the application programmer forgets or does not know about the
rule the database will still protect the data
2) the db is usually very efficient at checking the constraints,
usually more so than the application
3) PK, UK, and FK defined in the database serve as a form of
documentation about the relationships between the tables
disadvantages
1) the error message returned to a user is pretty ugly (though the
program can check for and format user friendly error messages)
2) where the rule is to only be selectly enforced you usually need to
do it in the application
3) FK's make table/index maintenance slightly more difficult for the
DBA (You can not drop and rebuild a PK index in another tablespace if
there are 5 FK that reference it without first disabling the FK's, and
then you must remember to re-establish the FK after rebuilding the
index.)
right now.
Calendar
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Announce
Who's Online?
Member: 0
Visitor: 1
Visitor: 1
Archives
- May 2009 (1)
- March 2009 (2)
- January 2009 (1)
- December 2009 (1)
- November 2008 (3)

Syndication