multiple tables need one to many relationship

后端 未结 5 1477
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 19:39

I have a SQL database with multiple tables: A, B, C, D. Entities in those tables are quite different things, with different columns, and different kind of relations between

5条回答
  •  甜味超标
    2020-12-05 19:42

    You don't need a separate comment table for every other, one is enough. Every comment will have a unique ID, so you don't have to worry about conflicts.

提交回复
热议问题