SQL Database with variable number of columns

前端 未结 4 912
再見小時候
再見小時候 2021-01-24 22:38

I have a newbie question about a database I am trying to create. I have a list of publications, with this general order:

UID, Author, URL, Title, Publication, start page

4条回答
  •  情话喂你
    2021-01-24 23:03

    You have many to many relationship between entity Publication and entity Author. Publication can have many authors, author can have many publications.

    So, you should create table for this relationship. For example table Authors_Publications with columns: UID, author_id, publication_id, order

提交回复
热议问题