Database MN relationship

前端 未结 2 1717
粉色の甜心
粉色の甜心 2021-01-29 09:31

I\'m taking a class on database management systems (absolute beginner) and I\'m working on a database for a very simple blog system.

I have a question regarding one M:

相关标签:
2条回答
  • 2021-01-29 09:52

    It's probably a combination of two things. One would be a lack of referential integrity in your database design, ie you need foreign keys. The other would be that your front end application is allowing blogs without categories to be posted.

    0 讨论(0)
  • 2021-01-29 09:56

    Because you can add a blog_posts record without having to add an associated post_cat record.

    0 讨论(0)
提交回复
热议问题