If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Weak Entities and MySQL ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-06, 17:13
NullDevice NullDevice is offline
Registered User
 
Join Date: Apr 2006
Posts: 2
Weak Entities and MySQL ?

How about weak entities and mysql?
Is there any possiblility i can create them?
If yes, how? I googled but it seems theres nothing to find about it (??)

Maybe i just don't know how weak entities are called usually...
I mean an entity's foreign key is part of some other entities primary key. So in the key there is some kind of suffix, an addition.

This indicates that the "child" entity cannot exist without the "parent" one.

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 04-19-06, 17:46
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
yes, you can do this in mysql -- ordinary primary/foreign keys

and the nice thing is, in mysql, you can decide to implement your tables in such a way that the foreign keys are not enforced

that's really weak!!

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On