T-SQL Tag Database Architecture Design?

前端 未结 3 1688
伪装坚强ぢ
伪装坚强ぢ 2021-02-11 02:51

Scenario

I am building a database that contains a series of different tables. These consist of a COMMENTS table, a BLOGS table & an ARTICLES table. I want to be abl

3条回答
  •  渐次进展
    2021-02-11 03:28

    usually many-to-many relationship implemented exactly as you describe it.

    Auto-incrementing IDs it is good idea since it guarantee that they will be unique.

    And you can use guids if you want to tag comments and articles with the same tag(instead of 6 tables you need just 5). But searching with guids may be more slow.

提交回复
热议问题