A
A
Anton2016-09-28 01:44:34
MySQL
Anton, 2016-09-28 01:44:34

What is the best way to make a table of books?

Hello. There is a table of books and a book, of course, has authors, and since there can be many authors, the question arises, how best to store authors? Make a separate table or write everyone in one field?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Belyaev, 2016-09-28
@bingo347

And one author can have many books.
Naturally, the authors in a separate table and a many-to-many relationship through the 3rd table
And read about normal forms

E
entermix, 2016-09-28
@entermix

my God, have you looked at at least one manual? There are also plenty of detailed examples with books.

D
Dmitry Eremin, 2016-09-28
@EreminD

In general, the idea is such a
List of books, a list of authors and a separate book-author. Accordingly, there may be several entries about the book, but with different authors
_______________
BookId
BookName
_______________
AuthorId
AuthorName
_______________
Id
BookId
AuthorId

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question