Thank you very much! I have tried this for more than an hour.
Let’s summarize: We need to add at least one row of data for both tables(the table and the reference table) and regardless of how many rows you have, each row’s primary and foreign keys must have its value.