简体   繁体   中英

Database relationship (MySQL Workbench)

I am not sure, if i did the right relation between my tables. I do not know, if i have to use 1:n or n:1, or am I completely wrong? I had joins in my course only and not really the relationships between the tables.

Here is my screenshot from mysql workbench: click

Would be nice, if someone can help me!!

I suggest connecting table user->user_id and table search_form->user_id , and of course table user->user_id and table find_form->user_id with 1:n.

According to the fieldnames it makes the most sense.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM