W
W
waldemark2020-04-18 03:52:10
Database design
waldemark, 2020-04-18 03:52:10

How to make a table default to a value from another table?

There is a word has one category relationship, there is a categories table and there is a foreign key word_id in it, how can I make the id value from the words table be substituted into this word_id by default?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2020-04-18
@tsklab

word has one category
Use one table, not two.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question